/* ============================================================
   OUTSTRIP — /features pages
   Feature landing pages + hub. Reuses global tokens from styles.css.
   ============================================================ */

/* ---------- HERO ---------- */
.feat-hero { padding: calc(var(--nav-h) + 54px) 0 40px; position: relative; overflow: hidden; }
.feat-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, var(--violet-50), transparent 70%),
    radial-gradient(50% 50% at 0% 20%, #FFF3EA, transparent 70%);
}
.feat-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 940px){ .feat-hero-inner { grid-template-columns: 1fr; gap: 34px; } }

.feat-crumb { font-size: 13px; font-weight: 600; color: var(--ink-400); margin-bottom: 18px; }
.feat-crumb a { color: var(--violet-700); }
.feat-crumb a:hover { text-decoration: underline; }
.feat-crumb span[aria-hidden] { margin: 0 6px; color: var(--ink-300); }

.feat-kicker { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.feat-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet-600); flex: none; }
.feat-ico.orange { background: #FFEAD8; color: var(--orange-600); }
.feat-ico svg { width: 21px; height: 21px; }
.feat-kicker-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-800); }
.feat-tier { margin-left: 2px; }

.feat-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.feat-hero .lede { margin-top: 20px; max-width: 34em; }
.feat-hero .hero-cta { margin-top: 30px; }

/* screenshot placeholder (mirrors .mod-frame styling, honestly labeled) */
.feat-shot {
  margin: 0; border-radius: var(--r-lg); background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.feat-shot-chrome { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: var(--paper-2); }
.feat-shot-chrome span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.feat-shot-body { height: calc(100% - 45px); display: grid; place-content: center; justify-items: center;
  gap: 12px; text-align: center; padding: 24px;
  background:
    linear-gradient(0deg, var(--paper-2), var(--card)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(124,108,240,.03) 18px 19px); }
.feat-shot-ico { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet-500); box-shadow: var(--sh-sm); }
.feat-shot-ico svg { width: 28px; height: 28px; }
.feat-shot-body b { font-size: 17px; letter-spacing: -0.03em; color: var(--ink-800); }
.feat-shot-cap { font-size: 12.5px; font-weight: 600; color: var(--ink-400);
  background: var(--paper-3); padding: 5px 12px; border-radius: 999px; }

/* ---------- HUB HERO ---------- */
.feat-hero-hub { padding-bottom: 8px; }
.feat-hero-head { max-width: 720px; }
.feat-hero-hub h1 { font-size: clamp(36px, 6vw, 58px); margin-top: 20px; }
.feat-hero-hub .lede { margin-top: 20px; }

/* ---------- HUB GRID ---------- */
.feat-hub-grid { margin-top: 34px; }
.feat-hub-card { display: flex; flex-direction: column; text-decoration: none; }
.feat-hub-card h4 { color: var(--ink-950); }
.feat-hub-card .link-arrow { margin-top: auto; padding-top: 18px; }
.feat-hub-card:hover .link-arrow svg { transform: translateX(3px); }
.feat-hub-card .link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }

/* ---------- HOW: force 3-up ---------- */
.feat-how-steps { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin: 0 auto; }
@media (max-width: 720px){ .feat-how-steps { grid-template-columns: 1fr; } }

/* ---------- RELATED FEATURES ---------- */
.feat-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 860px){ .feat-rel-grid { grid-template-columns: 1fr; } }
.feat-rel-card {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-xs); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feat-rel-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.feat-rel-ico { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet-600); }
.feat-rel-ico svg { width: 20px; height: 20px; }
.feat-rel-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feat-rel-txt b { font-size: 14.5px; letter-spacing: -0.02em; color: var(--ink-900); }
.feat-rel-txt span { font-size: 12.5px; color: var(--ink-400); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat-rel-arw { margin-left: auto; color: var(--violet-500); flex: none; }
.feat-rel-arw svg { width: 18px; height: 18px; }

/* ============================================================
   FEATURE ILLUSTRATIONS — abstract, on-brand concept art that
   lives inside the .feat-shot browser frame (not a real screenshot).
   Composed from shared primitives so each page stays compact.
   ============================================================ */
.feat-shot-viz {
  height: calc(100% - 45px); position: relative; overflow: hidden;
  padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background:
    radial-gradient(120% 95% at 100% 0%, var(--violet-50), transparent 58%),
    radial-gradient(95% 85% at 0% 100%, #FFF4EC, transparent 60%),
    var(--card);
}
.feat-shot-viz::after { /* soft grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 34px 100%;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 78%);
          mask-image: radial-gradient(80% 80% at 50% 40%, #000, transparent 78%);
}
.feat-shot-viz > * { position: relative; z-index: 1; }

/* cards & rows */
.fx-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--sh-md); padding: 14px 15px; }
.fx-card.sm { padding: 11px 13px; border-radius: 12px; box-shadow: var(--sh-sm); }
.fx-row { display: flex; align-items: center; gap: 10px; }
.fx-col { display: flex; flex-direction: column; gap: 9px; }
.fx-between { justify-content: space-between; }
.fx-lbl { font-size: 12px; font-weight: 700; color: var(--ink-800); letter-spacing: -.02em; }
.fx-sub { font-size: 10.5px; font-weight: 600; color: var(--ink-400); letter-spacing: -.01em; }
.fx-num { font-size: 17px; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }

/* leading glyph tile */
.fx-dot { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center;
  background: var(--violet-50); color: var(--violet-600); }
.fx-dot.o { background: #FFEAD8; color: var(--orange-600); }
.fx-dot.g { background: #E7F7EE; color: #1B8A54; }
.fx-dot svg { width: 15px; height: 15px; }

/* pills / verdict tags */
.fx-pill { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px;
  letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.fx-pill.good { background: #E7F7EE; color: #1B8A54; }
.fx-pill.bad  { background: #FCEBEA; color: #C9382B; }
.fx-pill.warn { background: #FFF1E2; color: var(--orange-600); }
.fx-pill.v    { background: var(--violet-100); color: var(--violet-700); }
.fx-pill.mut  { background: var(--paper-3); color: var(--ink-500); }

/* mini bar chart */
.fx-bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.fx-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--violet-400), var(--violet-600)); }
.fx-bars i.o { background: linear-gradient(180deg, var(--orange-300), var(--orange-500)); }
.fx-bars i.mut { background: var(--paper-3); }

/* progress track */
.fx-track { height: 7px; border-radius: 999px; background: var(--paper-3); overflow: hidden; flex: 1; }
.fx-track i { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-700)); }
.fx-track i.o { background: linear-gradient(90deg, var(--orange-400), var(--orange-500)); }
.fx-track i.g { background: linear-gradient(90deg, #34C77B, #1B8A54); }

/* stat tiles */
.fx-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.fx-tile { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  box-shadow: var(--sh-xs); display: flex; flex-direction: column; gap: 3px; }
.fx-tile b { font-size: 18px; letter-spacing: -.035em; color: var(--ink-900); }
.fx-tile span { font-size: 10px; font-weight: 700; color: var(--ink-400); letter-spacing: .01em; }
.fx-up { color: #1B8A54; font-weight: 800; }
.fx-dn { color: #C9382B; font-weight: 800; }

/* chat bubbles */
.fx-bubble { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: 11.5px; font-weight: 500; line-height: 1.42; }
.fx-bubble.q { align-self: flex-end; background: var(--violet-500); color: #fff; border-bottom-right-radius: 5px; }
.fx-bubble.a { align-self: flex-start; background: var(--card); border: 1px solid var(--line); color: var(--ink-700);
  border-bottom-left-radius: 5px; box-shadow: var(--sh-sm); }
.fx-bubble.a b { color: var(--ink-900); font-weight: 800; }

/* channel chips */
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 11px; box-shadow: var(--sh-xs); font-size: 11px; font-weight: 700; color: var(--ink-700); }
.fx-chip i { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* sparkline / line svg helpers */
.fx-spark { width: 100%; height: 40px; display: block; }
.fx-spark path { fill: none; stroke: var(--violet-500); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.fx-spark .area { fill: var(--violet-50); stroke: none; }
.fx-spark .o { stroke: var(--orange-500); }

/* score ring */
.fx-ring { flex: none; display: grid; place-items: center; position: relative; }
.fx-ring svg { transform: rotate(-90deg); }
.fx-ring .fx-ring-val { position: absolute; inset: 0; display: grid; place-content: center;
  text-align: center; line-height: 1; }
.fx-ring .fx-ring-val b { font-size: 20px; font-weight: 800; color: var(--ink-900); letter-spacing: -.04em; line-height: 1; }
.fx-ring .fx-ring-val span { display: block; font-size: 7.5px; font-weight: 800; color: var(--ink-400);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; line-height: 1; }

/* mini calendar */
.fx-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.fx-cal i { aspect-ratio: 1; border-radius: 5px; background: var(--paper-3); }
.fx-cal i.on { background: var(--violet-100); }
.fx-cal i.v { background: var(--violet-500); box-shadow: 0 2px 6px rgba(108,85,232,.35); }
.fx-cal i.o { background: var(--orange-400); box-shadow: 0 2px 6px rgba(255,107,53,.30); }

/* creative thumb (competitor / google intel) */
.fx-thumb { flex: 1; border-radius: 10px; border: 1px solid var(--line); overflow: hidden;
  background: var(--paper-2); position: relative; min-height: 78px; box-shadow: var(--sh-xs); }
.fx-thumb .band { height: 44px; background: linear-gradient(135deg, var(--violet-300), var(--violet-500)); }
.fx-thumb.o .band { background: linear-gradient(135deg, var(--orange-300), var(--orange-500)); }
.fx-thumb.dead { filter: grayscale(1); opacity: .62; }
.fx-thumb .meta { padding: 7px 9px; display: flex; flex-direction: column; gap: 5px; }
.fx-thumb .meta em { height: 6px; border-radius: 999px; background: var(--paper-3); display: block; font-style: normal; }
.fx-thumb .meta em.w2 { width: 60%; }
.fx-thumb .tag { position: absolute; top: 7px; left: 7px; }

.fx-node { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: 12px; background: var(--grad-violet); color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: -.02em; box-shadow: 0 8px 20px rgba(108,85,232,.35); }
.fx-node img { width: 16px; height: 16px; filter: brightness(0) invert(1); }

/* floaty entrance handled by existing .reveal on the figure */

/* ---------- DARK MODE ---------- */
.on-dark .feat-ico { background: rgba(124,108,240,.16); color: var(--violet-300); }
@media (prefers-color-scheme: dark){}
