/* ============================================================
   OUTSTRIP — Product-UI mock components
   App window chrome, growth score gauge, recommendation &
   opportunity cards, mini charts. Used as "real product" proof.
   ============================================================ */

/* ---------- App window chrome ---------- */
.appwin {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-xl);
}
.appwin-bar {
  height: 42px; display: flex; align-items: center; gap: 8px;
  padding: 0 15px; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.appwin-dots { display: flex; gap: 7px; }
.appwin-dots i { width: 11px; height: 11px; border-radius: 50%; background: #DAD6E6; }
.appwin-url {
  margin-left: 10px; height: 24px; flex: 1; max-width: 340px;
  display: flex; align-items: center; gap: 7px; padding: 0 11px;
  background: #fff; border: 1px solid var(--line); border-radius: 7px;
  font-size: 12px; color: var(--ink-400); font-weight: 500;
}
.appwin-url svg { width: 11px; height: 11px; }
.appwin-body { display: grid; grid-template-columns: 188px 1fr; min-height: 0; }

/* product sidebar (dark, mirrors real app) */
.psb { background: var(--d-bg); padding: 16px 12px; color: var(--d-ink-2); }
.psb-brand { display: flex; align-items: center; gap: 9px; padding: 4px 6px 16px; }
.psb-brand .logo-word { font-size: 15px; color: #fff; }
.psb-brand .logo-mark { width: 26px; height: 26px; }
.psb-ws { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 10px; background: var(--d-card); margin-bottom: 14px; }
.psb-ws-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--grad-violet); flex: none; }
.psb-ws small { display: block; font-size: 9px; letter-spacing: .1em; color: var(--d-ink-3); text-transform: uppercase; font-weight: 700; }
.psb-ws b { font-size: 12px; color: #fff; font-weight: 700; }
.psb-label { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-3); font-weight: 700; padding: 12px 10px 6px; }
.psb-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 550; color: var(--d-ink-2); }
.psb-item svg { width: 15px; height: 15px; opacity: .8; }
.psb-item.active { background: rgba(124,108,240,.16); color: #fff; }
.psb-item.active svg { color: var(--orange-400); opacity: 1; }
.psb-item.advisor { color: var(--orange-400); }

/* product main canvas */
.pmain { background: var(--paper); padding: 18px; min-width: 0; }
.pmain-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pmain-head h4 { font-size: 16px; letter-spacing: -0.03em; }
.pmain-head .pill { height: 26px; font-size: 11.5px; }

/* ---------- Growth score gauge ---------- */
.gscore {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; display: flex; gap: 18px; align-items: center; box-shadow: var(--sh-sm);
}
.gauge { width: 116px; height: 116px; flex: none; position: relative; }
.gauge svg { transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--paper-3); stroke-width: 11; }
.gauge-fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.8,.3,1); }
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-center b { font-size: 32px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink-950); }
.gauge-center span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400); }
.gscore-meta { min-width: 0; }
.gscore-meta .label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-400); }
.gscore-meta h5 { font-size: 20px; letter-spacing: -0.03em; margin: 3px 0 9px; }
.gscore-delta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--green-500); background: var(--green-50); padding: 4px 9px; border-radius: 8px; }
.gscore-delta svg { width: 13px; height: 13px; }
.gscore-sub { font-size: 12.5px; color: var(--ink-400); margin-top: 10px; line-height: 1.45; }

/* ---------- Recommendation card ---------- */
.rec {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px; display: flex; gap: 12px; box-shadow: var(--sh-xs);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rec:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.rec-ico { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.rec-ico svg { width: 17px; height: 17px; }
.rec-ico.violet { background: var(--violet-100); color: var(--violet-600); }
.rec-ico.orange { background: #FFEAD8; color: var(--orange-600); }
.rec-ico.rose { background: var(--rose-50); color: var(--rose-500); }
.rec-ico.green { background: var(--green-50); color: var(--green-500); }
.rec-body { min-width: 0; flex: 1; }
.rec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.rec-head h6 { font-size: 13.5px; font-weight: 700; letter-spacing: -0.02em; }
.rec p { font-size: 12.5px; color: var(--ink-500); line-height: 1.46; }
.rec-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.rec-impact { font-size: 12px; font-weight: 700; color: var(--green-500); }
.rec-act { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--violet-700); display: inline-flex; align-items: center; gap: 4px; }
.rec-act svg { width: 12px; height: 12px; }

/* ---------- Mini stat tiles ---------- */
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 14px; box-shadow: var(--sh-xs); }
.stat-tile .t { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-400); display: flex; align-items: center; gap: 6px; }
.stat-tile .t svg { width: 13px; height: 13px; }
.stat-tile .v { font-size: 23px; font-weight: 800; letter-spacing: -0.04em; margin-top: 6px; color: var(--ink-950); }
.stat-tile .d { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.stat-tile .d.up { color: var(--green-500); }
.stat-tile .d.down { color: var(--rose-500); }

/* ---------- Sparkline / bars ---------- */
.spark { display: flex; align-items: flex-end; gap: 4px; height: 38px; }
.spark i { flex: 1; background: var(--violet-200); border-radius: 3px 3px 0 0; transition: height .3s; }
.spark i.hot { background: var(--violet-500); }
.spark i.peak { background: var(--orange-500); }

/* ---------- Advisor chat bubble ---------- */
.advisor-msg { display: flex; gap: 11px; }
.advisor-av { width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--grad-brand); position: relative; box-shadow: 0 3px 8px rgba(108,85,232,.3); }
.advisor-av::after { content: ""; position: absolute; inset: 0; margin: auto; width: 13px; height: 13px;
  -webkit-mask: var(--ico-spark) center/contain no-repeat; mask: var(--ico-spark) center/contain no-repeat; background: #fff; }
.advisor-bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 12px 14px; font-size: 13px; color: var(--ink-700); line-height: 1.5; box-shadow: var(--sh-xs); }
.advisor-bubble b { color: var(--ink-950); font-weight: 700; }
.advisor-bubble .hl { background: var(--violet-50); color: var(--violet-700); padding: 0 4px; border-radius: 4px; font-weight: 700; }

:root { --ico-spark: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l1.8 5.6L19.5 9.4 13.8 11.2 12 16.8 10.2 11.2 4.5 9.4 10.2 7.6z' fill='black'/></svg>"); }

/* ---------- Floating proof chip (around hero) ---------- */
.proof-chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 14px; box-shadow: var(--sh-lg); z-index: 5;
}
.proof-chip .pc-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.proof-chip .pc-ico svg { width: 16px; height: 16px; }
.proof-chip small { font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-400); display: block; }
.proof-chip b { font-size: 15px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-950); }

/* ---------- Image placeholder (for real screenshots) ---------- */
.ph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 11px, var(--paper-3) 11px 22px);
  border: 1px dashed var(--line-2);
  display: grid; place-content: center; text-align: center;
}
.ph span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--ink-400); letter-spacing: .02em; padding: 6px 10px; background: rgba(255,255,255,.7); border-radius: 6px; }
