/* page/features.css — page-scoped styling for features.html only.
   Composes tokens + classes from components/styles.css and home/home-flagship.css
   (R-04/R-05) — no shared file is edited to make this page work. Loads LAST. */

/* ---------------- Masthead ---------------- */
.feat-mast { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(32px, 5vw, 56px); }
.feat-mast__inner { max-width: var(--content); text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.feat-mast .hero__badge { margin-bottom: 18px; }
.feat-mast .kicker { justify-content: center; }
.feat-mast__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: var(--primary);
  margin: 10px 0 18px; text-wrap: balance;
}
.feat-mast__sub { font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; color: var(--text); max-width: 62ch; margin: 0 auto; }
.feat-mast__cta { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------------- Trust strip caption ---------------- */
.feat-trust__cap { text-align: center; font-size: 13.5px; color: var(--text); margin: 0 0 24px; }
.feat-trust__cap strong { color: var(--primary); }

/* ---------------- Centred section head ----------------
   .sec-head is a flex row that pushes its block to the left; this variant
   centres the whole head so a centred card grid beneath it doesn't read as
   left-weighted. */
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center > div { max-width: 62ch; }
.sec-head--center .kicker { justify-content: center; }
.sec-head--center .sec-lede { margin-left: auto; margin-right: auto; }

/* ---------------- Strategic planning: centred capability cards ----------------
   Deliberately NOT the .features bento (Selection) and NOT the .cap-row
   checklist (Management / Reporting) — a third, quieter treatment, so no two
   sections down this page share a card grid (R-13). Four peers with no
   reading order, centred, on a 2x2 that closes exactly. */
.cap-cards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  max-width: 940px; margin: 0 auto;
}
.cap-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  padding: clamp(26px, 3vw, 34px) clamp(22px, 2.6vw, 32px) clamp(28px, 3vw, 36px);
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  transition: border-color 300ms var(--ease-standard, ease),
              box-shadow 300ms var(--ease-standard, ease),
              transform 300ms var(--ease-out, ease);
}
.cap-card > * { position: relative; z-index: 1; }
/* faint neutral glow behind the icon — the only background incident, no wash (R-01) */
.cap-card::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: -56px;
  width: 260px; height: 260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(11, 11, 11, 0.045), transparent 72%);
  pointer-events: none;
  opacity: 0; transition: opacity 320ms var(--ease-standard, ease);
}
.cap-card__icon {
  width: 52px; height: 52px; border-radius: 15px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, #fafafa); border: 1px solid var(--line);
  color: var(--primary);
  transition: transform 320ms var(--ease-out, ease), border-color 320ms ease;
}
.cap-card__icon svg { width: 24px; height: 24px; transition: transform 320ms var(--ease-out, ease); }
.cap-card__title {
  font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--primary); margin: 2px 0 0; text-wrap: balance;
}
.cap-card__body {
  font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0;
  max-width: 40ch; text-wrap: pretty;
}

@media (hover: hover) and (pointer: fine) {
  .cap-card:hover { border-color: rgba(11, 11, 11, 0.28); box-shadow: 0 18px 40px -22px rgba(11, 11, 11, 0.28); transform: translateY(-4px); }
  .cap-card:hover::before { opacity: 1; }
  .cap-card:hover .cap-card__icon { transform: translateY(-3px) scale(1.05); border-color: rgba(11, 11, 11, 0.22); }
  .cap-card:hover .cap-card__icon svg { transform: rotate(-6deg); }
}

/* on-appear: the four cards assemble in order — the groundwork being laid
   before the campaign, which is what this section says (R-03). Staggered off
   the container's own .is-in, so it shares the page's single reveal observer. */
/* the container is a trigger only — it carries .reveal so the page's single
   IntersectionObserver flips .is-in on it, but the motion belongs to the
   cards, not to the block as a whole. */
.reveal-ready .cap-cards.reveal { opacity: 1; transform: none; transition: none; }
.reveal-ready .cap-cards .cap-card {
  opacity: 0; transform: translateY(20px) scale(0.985);
  transition: opacity 600ms var(--ease-out, ease), transform 600ms var(--ease-out, ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal-ready .cap-cards .cap-card .cap-card__icon {
  opacity: 0; transform: translateY(8px) scale(0.9);
  transition: opacity 460ms var(--ease-out, ease), transform 520ms var(--ease-out, ease);
  transition-delay: calc(var(--i, 0) * 110ms + 140ms);
}
.reveal-ready .cap-cards.is-in .cap-card,
.reveal-ready .cap-cards.is-in .cap-card .cap-card__icon { opacity: 1; transform: none; }

@media (max-width: 720px) {
  .cap-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cap-card, .cap-card::before, .cap-card__icon, .cap-card__icon svg { transition: none; }
  .reveal-ready .cap-cards .cap-card,
  .reveal-ready .cap-cards .cap-card .cap-card__icon {
    opacity: 1; transform: none; transition: opacity 200ms linear; transition-delay: 0s;
  }
}

/* ---------------- Checklist rows (Planning / Management / Reporting) ----------------
   A distinct visual rhythm from the .features bento grid used for the flagship
   Selection section — avoids repeating the same card grid four times (R-13). */
.cap-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cap-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: border-color 240ms ease;
}
.cap-row__icon {
  width: 44px; height: 44px; border-radius: var(--r-card); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, #f4f1f3); color: var(--primary);
  transition: transform 240ms var(--ease-out, ease), background 240ms ease, color 240ms ease;
}
.cap-row__icon svg { width: 21px; height: 21px; transition: transform 240ms var(--ease-out, ease); }
.cap-row__title { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; line-height: 1.3; letter-spacing: -0.01em; color: var(--primary); margin: 6px 0 5px; }
.cap-row__body { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0; max-width: 58ch; }

/* row-level hover feedback — kept to icon lift + a gradient hairline on the
   existing divider (never a card surface/shadow: R-13 bans repeating the
   .features bento's card treatment down the page a third time) */
@media (hover: hover) and (pointer: fine) {
  .cap-row:hover { border-bottom: 1px solid; border-image: var(--grad) 1; }
  .cap-row:hover .cap-row__icon { transform: translateY(-2px) scale(1.05); }
  .cap-row:hover .cap-row__icon svg { transform: rotate(-6deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cap-row, .cap-row__icon, .cap-row__icon svg { transition: none; }
}

/* ---------------- Campaign management: umbrella lead panel ----------------
   The section's own claim, stated once at full width, with the seven layers
   its copy enumerates as tags — this is what fills the width the old dangling
   7th grid cell left empty. */
.cap-lead {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.8vw, 34px);
  background: var(--surface-2, #fafafa); border: 1px solid var(--line);
  border-radius: var(--r-frame); margin-bottom: clamp(20px, 2.4vw, 30px);
}
.cap-lead__main { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; }
.cap-lead__icon {
  width: 52px; height: 52px; border-radius: 15px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--line); color: var(--primary);
  transition: transform 300ms var(--ease-out, ease);
}
.cap-lead__icon svg { width: 24px; height: 24px; }
.cap-lead__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 21px);
  line-height: 1.25; letter-spacing: -0.01em; color: var(--primary); margin: 3px 0 6px;
}
.cap-lead__body { font-size: 14.5px; line-height: 1.6; color: var(--text); margin: 0; max-width: 46ch; }
.cap-lead__tags-cap {
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted, #9a9a9a);
  margin: 0 0 10px;
}
.cap-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cap-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 12px 6px 10px;
  transition: border-color 240ms ease, transform 240ms var(--ease-out, ease);
}
.cap-tag::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary); opacity: 0.5;
}
@media (hover: hover) and (pointer: fine) {
  .cap-lead:hover .cap-lead__icon { transform: translateY(-2px); }
  .cap-tag:hover { border-color: rgba(11, 11, 11, 0.28); transform: translateY(-1px); }
}
/* tags arrive after the panel itself, left to right */
.reveal-ready .cap-lead .cap-tag {
  opacity: 0; transform: translateY(8px);
  transition: opacity 420ms var(--ease-out, ease), transform 420ms var(--ease-out, ease);
}
.reveal-ready .cap-lead .cap-tag:nth-child(1) { transition-delay: 160ms; }
.reveal-ready .cap-lead .cap-tag:nth-child(2) { transition-delay: 220ms; }
.reveal-ready .cap-lead .cap-tag:nth-child(3) { transition-delay: 280ms; }
.reveal-ready .cap-lead .cap-tag:nth-child(4) { transition-delay: 340ms; }
.reveal-ready .cap-lead .cap-tag:nth-child(5) { transition-delay: 400ms; }
.reveal-ready .cap-lead .cap-tag:nth-child(6) { transition-delay: 460ms; }
.reveal-ready .cap-lead .cap-tag:nth-child(7) { transition-delay: 520ms; }
.reveal-ready .cap-lead.is-in .cap-tag { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cap-lead__icon, .cap-tag { transition: none; }
  .reveal-ready .cap-lead .cap-tag { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
}
@media (max-width: 900px) {
  .cap-lead { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 560px) {
  .cap-lead__main { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .cap-lead__icon { width: 42px; height: 42px; border-radius: 13px; }
  .cap-lead__icon svg { width: 20px; height: 20px; }
}

/* two-column checklist for the denser Campaign Management category.
   Six rows exactly — 2x3 closes the grid with no trailing half-row. */
.cap-list--grid { border-top: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.cap-list--grid .cap-row:first-child,
.cap-list--grid .cap-row:nth-child(2) { border-top: 1px solid var(--line); }
/* the two rows of the closing pair keep equal height so neither divider
   floats above a short body */
.cap-list--grid .cap-row { align-content: start; }

/* the compact stack that sits beside the hero tile in Strategic Selection */
.cap-list--stack { border-top: none; justify-content: center; }
.cap-list--stack .cap-row:first-child { border-top: 1px solid var(--line); }

/* ---------------- Strategic Selection: hero tile + stacked list, side by side ---------------- */
.features--pair { grid-template-columns: 1.2fr 1fr; grid-auto-rows: auto; }
.features--pair .feature--hero { grid-column: auto; grid-row: auto; }

@media (max-width: 900px) {
  .features--pair { grid-template-columns: 1fr; }
  .cap-list--grid { grid-template-columns: 1fr; }
  .cap-list--grid .cap-row:nth-child(2) { border-top: none; }
}
@media (max-width: 640px) {
  .cap-row { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .cap-row__icon { width: 36px; height: 36px; }
  .cap-row__icon svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .feat-mast__title, .feat-mast__sub { transition: none; }
}

/* ---------------- FE-03: manual process vs. Influeri automation ----------------
   Rendered as a premium timeline: 6 named phases (grouping the 18 real steps
   into the clusters a brand's team actually feels them in) run down a
   gradient-numbered spine, each phase's 3 steps joined by arrow connectors —
   so it reads as an explained process diagram, not a wrapping cloud of chips.
   Still deliberately plainer than .proc-flow's cards above it: the manual
   track should read as fragmented and effortful next to the simple 5-step
   flow, not as an equally-designed alternative. */
.proc-compare { margin-top: clamp(36px, 5vw, 56px); }
/* names the block for what it is — the manual process, not a second Influeri
   flow. Sized below .sec-title so it reads as a sub-head of "From a brief to
   live results" rather than competing with it. */
.proc-compare__title {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--primary); margin: 0 0 10px; text-wrap: balance;
}
.proc-compare__caption {
  text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: 0.02em; color: var(--text);
  margin: 0 0 10px;
}
.proc-compare__lede {
  text-align: center; font-size: 14px; line-height: 1.6; color: var(--text);
  max-width: 56ch; margin: 0 auto 28px;
}
.proc-manual {
  padding: clamp(20px, 3vw, 32px); background: var(--surface-2, #f7f5f6); border-radius: var(--r-frame);
}

/* ---- phase timeline ---- */
.proc-manual__phase { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.proc-manual__phase + .proc-manual__phase { margin-top: 30px; }
.proc-manual__phase-marker { position: relative; display: flex; justify-content: center; }
.proc-manual__phase-no {
  position: relative; z-index: 2; width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 800;
  font-size: 14px; letter-spacing: -0.01em;
  box-shadow: 0 6px 16px rgba(237, 61, 127, 0.28);
}
.proc-manual__phase:not(:last-child) .proc-manual__phase-marker::after {
  content: ""; position: absolute; z-index: 1; top: 44px; bottom: -30px; left: 50%;
  width: 2px; transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(11, 11, 11, 0.18), rgba(11, 11, 11, 0.05));
}
.proc-manual__phase:not(:last-child) .proc-manual__phase-marker::before {
  content: ""; position: absolute; z-index: 1; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 6px solid rgba(11, 11, 11, 0.28);
}
.proc-manual__phase-head { margin-bottom: 14px; padding-top: 6px; }
.proc-manual__phase-title {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  color: var(--primary); margin: 0 0 4px;
}
.proc-manual__phase-note { font-size: 13px; line-height: 1.5; color: var(--text); margin: 0; max-width: 58ch; }

/* ---- step row ---- */
.proc-manual__row {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch;
  gap: 0 6px;
}
.proc-manual__chip {
  min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
  transition: opacity 0.2s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-out, ease);
}
.proc-manual__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line);
  font-size: 10.5px; font-weight: 700; color: var(--primary); margin-bottom: 8px;
  transition: transform 0.25s var(--ease-out, ease), border-color 0.25s ease;
}
.proc-manual__title { font-size: 13.5px; font-weight: 700; color: var(--primary); margin: 0 0 4px; line-height: 1.3; }
.proc-manual__body { font-size: 12.5px; line-height: 1.45; color: var(--text); margin: 0 0 10px; }
.proc-manual__status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 9px; border-radius: 20px;
}
.proc-manual__status--automated { background: rgba(11, 11, 11, 0.06); color: var(--primary); }
.proc-manual__status--managed { background: rgba(237, 61, 127, 0.12); color: #ed3d7f; }

@media (hover: hover) and (pointer: fine) {
  .proc-manual__chip:hover { border-color: #0b0b0b; box-shadow: 0 10px 24px -10px rgba(11, 11, 11, 0.18); transform: translateY(-3px); }
  .proc-manual__chip:hover .proc-manual__no { transform: scale(1.1); border-color: #0b0b0b; }
}
.proc-manual__chip.is-highlighted { border-color: #0b0b0b; box-shadow: 0 10px 24px -10px rgba(11, 11, 11, 0.22); transform: translateY(-3px); }
.proc-manual__chip.is-dim { opacity: 0.35; }
.proc-flow__node.is-mapped .proc-flow__card { border-color: #0b0b0b; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); }

/* Arrow connectors — right between chips in a row */
.proc-manual__arrow { display: flex; flex: none; align-items: center; justify-content: center; color: rgba(11, 11, 11, 0.3); }
.proc-manual__arrow svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .proc-manual__row { grid-template-columns: 1fr; gap: 8px 0; }
  .proc-manual__arrow--h { height: 20px; }
  .proc-manual__arrow--h svg { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .proc-manual__phase { grid-template-columns: 34px 1fr; gap: 12px; }
  .proc-manual__phase-no { width: 34px; height: 34px; font-size: 12px; }
  .proc-manual__phase:not(:last-child) .proc-manual__phase-marker::after,
  .proc-manual__phase:not(:last-child) .proc-manual__phase-marker::before { top: 34px; }
}

/* ---- entrance animation: staggered by phase, then by step within it ---- */
.proc-manual__phase,
.proc-manual__chip {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.proc-manual__phase { transition-delay: calc(var(--i, 0) * 120ms); }
.proc-manual__chip { transition-delay: calc(var(--i, 0) * 120ms + var(--ci, 0) * 90ms + 90ms); }
.proc-manual.is-in .proc-manual__phase,
.proc-manual.is-in .proc-manual__chip { opacity: 1; transform: none; }

/* a quiet, continuous pulse on the connectors once revealed — implies motion
   without competing with the reveal itself */
@media (prefers-reduced-motion: no-preference) {
  .proc-manual.is-in .proc-manual__arrow { animation: procArrowPulse 2.2s ease-in-out infinite; }
  .proc-manual.is-in .proc-manual__row .proc-manual__arrow--h:nth-of-type(2) { animation-delay: 0.35s; }
  .proc-manual.is-in .proc-manual__phase:not(:last-child) .proc-manual__phase-marker::before { animation: procArrowPulse 2.2s ease-in-out infinite; }
}
@keyframes procArrowPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .proc-manual__chip { transition: opacity 0.2s ease, border-color 0.2s ease; }
  .proc-manual__phase, .proc-manual__no { transition: none; }
  .proc-manual__phase, .proc-manual__chip { opacity: 1; transform: none; }
}

/* .final--wide removed 2026-09-02 (directed) — the closing CTA is a .ctx-cta strip now. */