/* ==========================================================================
   RanKnight — Enhancement layer for the service pages
   Trust strip, proof teaser, and ONE distinct signature module per page so the
   pages stop reading as templates. All CSS-drawn (no new assets), all honest
   illustrative mockups. Loaded after heraldry.css on the 5 service pages.
   ========================================================================== */

/* ---- Safe reveal: transform-only, never touches opacity -------------------
   Content is always fully visible (opacity stays 1) so it can NEVER become a
   hidden-content void for no-scroll/reduced-motion/crawler visitors. Motion
   only enhances, when the browser supports scroll timelines and motion is OK. */
.rise {}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .rise {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 16%;
    }
  }
}
@keyframes rise { from { transform: translateY(1.1rem); } to { transform: none; } }

/* ---- Trust strip (reassurance, under the hero) ---------------------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-4);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.trust-strip li svg { flex: 0 0 auto; width: 1.15rem; height: 1.15rem; color: var(--color-accent); }

/* ---- Proof teaser band (honest, links to the real results page) ----------- */
.proof-teaser__inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 820px) { .proof-teaser__inner { grid-template-columns: 1.3fr 0.7fr; gap: var(--space-7); } }
.proof-teaser__cta {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  padding: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--color-border));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--gold) 7%, var(--color-card));
}
.proof-teaser__stat { font-family: var(--font-display); font-weight: 900; font-size: var(--display-lg); color: var(--color-accent-text); line-height: 1; }
.proof-teaser__lab { color: var(--color-text-muted); font-size: var(--text-sm); }
.proof-teaser__cta .btn { margin-top: var(--space-2); }

/* ===========================================================================
   Signature modules (one per page)
   =========================================================================== */

/* 1 — Intent ladder (google-ads) ------------------------------------------- */
.intent-ladder { display: grid; gap: var(--space-2); }
.intent-ladder__cap { font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-family: var(--font-display); font-weight: 700; }
.intent-ladder__rung {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 0.75rem 0.95rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface-alt); color: var(--color-text-muted); font-size: var(--text-sm);
}
.intent-ladder__rung.is-dim { opacity: 0.5; }
.intent-ladder__rung.is-top {
  border-color: color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--gold) 13%, var(--color-card));
  color: var(--color-heading); font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.intent-ladder__tag {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xs);
  color: var(--color-on-accent); background: var(--color-accent);
  padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); white-space: nowrap;
}

/* 2 — Browser mock (web-design) -------------------------------------------- */
.browser-mock { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-surface-alt); }
.browser-mock__bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.8rem; background: var(--color-card); border-bottom: 1px solid var(--color-border); }
.browser-mock__bar .b-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--color-border); flex: 0 0 auto; }
.browser-mock__url { margin-left: 0.5rem; font-size: var(--text-xs); color: var(--steel); font-family: var(--font-display); }
.browser-mock__body { padding: var(--space-4); display: grid; gap: 0.6rem; }
.bm-line { height: 0.7rem; border-radius: 5px; background: color-mix(in srgb, var(--steel) 30%, transparent); }
.bm-line--title { height: 1.1rem; width: 75%; background: color-mix(in srgb, var(--steel) 55%, transparent); }
.bm-line--short { width: 55%; }
.bm-cta { justify-self: start; margin-top: 0.4rem; font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: var(--color-on-accent); background: var(--color-accent); padding: 0.55rem 1rem; border-radius: var(--radius-pill); }
.browser-mock__speed { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; border-top: 1px solid var(--color-border); color: var(--color-accent-text); font-size: var(--text-sm); font-family: var(--font-display); font-weight: 600; }
.browser-mock__speed svg { width: 1rem; height: 1rem; }

/* 3 — Ad card (facebook-ads) ----------------------------------------------- */
.ad-card { border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-card); max-width: 22rem; }
.ad-card__head { display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 0.9rem; }
.ad-card__avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: color-mix(in srgb, var(--gold) 30%, var(--color-surface-alt)); flex: 0 0 auto; }
.ad-card__head strong { display: block; font-size: var(--text-sm); color: var(--color-heading); }
.ad-card__head span { font-size: var(--text-xs); color: var(--steel); }
.ad-card__media { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, var(--ink-800)), var(--ink-800)); color: color-mix(in srgb, var(--gold) 65%, transparent); }
.ad-card__media svg { width: 2.4rem; height: 2.4rem; }
.ad-card__body { padding: 0.8rem 0.9rem 0; }
.ad-card__body p { margin: 0; color: var(--color-text); font-size: var(--text-sm); }
.ad-card__cta { margin: 0.8rem 0.9rem; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: var(--color-heading); background: var(--color-surface-alt); border: 1px solid var(--color-border); padding: 0.55rem; border-radius: var(--radius-sm); }

/* 4 — Lead-flow (automation) ------------------------------------------------ */
.leadflow { display: grid; gap: 0.4rem; }
.leadflow__node { display: flex; align-items: center; gap: var(--space-3); padding: 0.85rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface-alt); }
.leadflow__node svg { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; color: var(--color-accent); }
.leadflow__node strong { display: block; color: var(--color-heading); font-size: var(--text-sm); }
.leadflow__node span { color: var(--color-text-muted); font-size: var(--text-xs); }
.leadflow__node.is-win { border-color: color-mix(in srgb, var(--rank-top) 45%, transparent); background: color-mix(in srgb, var(--rank-top) 12%, var(--color-card)); }
.leadflow__node.is-win svg { color: var(--rank-top); }
.leadflow__arrow { display: flex; align-items: center; gap: 0.5rem; padding-left: 1.1rem; color: var(--steel); }
.leadflow__arrow svg { width: 1.1rem; height: 1.1rem; color: color-mix(in srgb, var(--gold) 60%, transparent); }
.leadflow__arrow span { font-size: var(--text-xs); font-family: var(--font-display); font-weight: 700; color: var(--color-accent-text); }

/* 5 — AI chat (ai-search) --------------------------------------------------- */
.ai-chat { display: grid; gap: 0.6rem; }
.ai-chat__q { justify-self: end; max-width: 85%; padding: 0.7rem 0.95rem; border-radius: var(--radius) var(--radius) 4px var(--radius); background: var(--color-accent); color: var(--color-on-accent); font-size: var(--text-sm); font-weight: 600; }
.ai-chat__a { justify-self: start; max-width: 90%; padding: 0.8rem 0.95rem; border-radius: var(--radius) var(--radius) var(--radius) 4px; background: var(--color-card); border: 1px solid var(--color-border); }
.ai-chat__who { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.35rem; }
.ai-chat__a p { margin: 0; color: var(--color-text); font-size: var(--text-sm); }
.ai-chat__a mark { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--color-heading); font-weight: 700; padding: 0 0.2rem; border-radius: 4px; }
.ai-chat__note { margin: 0.2rem 0 0; font-size: var(--text-xs); color: var(--steel); font-style: italic; }
