/* ============================================================
   GrowMint Media — Designed brand graphics (mockups & data-viz)
   On-system illustrations: ad-creative sets, short-form reels,
   landing wireframe, dashboard, charts. Pure CSS + light SVG.
   Each .mk fills its container (.ph / .media). Load after site.css.
   ============================================================ */

/* kill striped placeholder where a real graphic is dropped in */
.ph.has-mock, .media.has-mock { background: linear-gradient(180deg, var(--gm-surface) 0%, var(--gm-bg) 100%) !important; }
/* results: data-viz cards flow in-line and size to content (no absolute clip) */
.case .ph.has-mock { height: auto !important; min-height: 0; padding: 0; border: none; background: none !important; display: block; }
.case .ph.has-mock .mk { position: relative; inset: auto; height: auto; padding: 0; display: block; overflow: visible; }
.case .ph.has-mock .mk::after { display: none; }
.case .ph.has-mock .viz { height: 242px; }
.case .top .gm-badge, .case .top .spend { white-space: nowrap; }

.mk { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px; overflow: hidden; }
.mk::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, rgba(43,232,168,.07), transparent 60%); }
.mk-row { display: flex; gap: 12px; align-items: stretch; justify-content: center; width: 100%; height: 100%; }
.mk-col { display: flex; flex-direction: column; gap: 10px; width: 100%; height: 100%; }

/* duotone "product" fill — brand-approved (shadows->ink, highlights->mint) */
.duo { background:
    radial-gradient(80% 60% at 70% 15%, rgba(43,232,168,.55) 0%, rgba(43,232,168,0) 55%),
    linear-gradient(155deg, #0B1410 0%, #0C4A38 55%, #15725380 120%);
  position: relative; }
.duo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 30% 90%, rgba(231,194,107,.14), transparent 60%); }

/* ---------- real product shots (placeholder renders) ---------- */
.pic.duo::before, .vid.duo::before, .prod.duo::before { display: none; }
.pic.duo, .vid.duo, .prod.duo { background-repeat: no-repeat; background-position: center; background-size: cover; }
.ad-set .ad:nth-child(1) .pic.duo { background-image: url(img/shot-serum-amber.png?v=2); }
.ad-set .ad:nth-child(2) .pic.duo { background-image: url(img/shot-jar.png?v=2); }
.ad-set .ad:nth-child(3) .pic.duo { background-image: url(img/shot-serum-mint.png?v=2); }
.reel-set .reel:nth-child(1) .vid.duo { background-image: url(img/shot-serum-tall.png?v=2); }
.reel-set .reel:nth-child(2) .vid.duo { background-image: url(img/shot-jar.png?v=2); }
.reel-set .reel:nth-child(3) .vid.duo { background-image: url(img/shot-serum-mint.png?v=2); }
.lp .prod.duo { background-image: url(img/shot-serum-amber.png?v=2); }

/* ---------- ad-creative set ---------- */
.ad-set { display: flex; gap: 12px; align-items: stretch; height: 100%; width: 100%; justify-content: center; }
.ad { flex: 1 1 0; max-width: 33%; border: 1px solid var(--gm-border); border-radius: 12px; overflow: hidden; background: var(--gm-surface); display: flex; flex-direction: column; box-shadow: var(--gm-shadow-sm); }
.ad .pic { flex: 1 1 auto; min-height: 0; position: relative; }
.ad .tag { position: absolute; top: 8px; left: 8px; font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #06120D; background: var(--gm-mint); padding: 3px 7px; border-radius: 999px; }
.ad .mark { position: absolute; top: 8px; right: 8px; width: 16px; height: 16px; opacity: .9; }
.ad .meta { padding: 9px 10px 10px; border-top: 1px solid var(--gm-border); background: var(--gm-surface); }
.ad .hook { font-size: 10px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--gm-text); }
.ad .cta { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; }
.ad .cta .btn { font-size: 8px; font-weight: 700; color: #06120D; background: var(--gm-gradient); padding: 4px 9px; border-radius: 999px; }
.ad .cta .stars { font-size: 8px; color: var(--gm-gold); letter-spacing: 1px; }

/* ---------- short-form reels ---------- */
.reel-set { display: flex; gap: 12px; height: 100%; width: 100%; align-items: center; justify-content: center; }
.reel { flex: 1 1 0; min-width: 0; max-width: 130px; aspect-ratio: 9 / 16; height: auto; max-height: 96%; border-radius: 16px; border: 1px solid var(--gm-border); overflow: hidden; position: relative; background: var(--gm-bg); box-shadow: var(--gm-shadow); }
.reel .vid { position: absolute; inset: 0; }
.reel .top { position: absolute; top: 9px; left: 9px; right: 9px; display: flex; align-items: center; gap: 6px; z-index: 2; }
.reel .top .av { width: 16px; height: 16px; border-radius: 50%; background: var(--gm-gradient); }
.reel .top .nm { font-size: 8px; font-weight: 600; color: #fff; }
.reel .top .sp { margin-left: auto; font-size: 7px; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 1px 4px; }
.reel .rail { position: absolute; right: 8px; bottom: 34px; display: flex; flex-direction: column; gap: 11px; align-items: center; z-index: 2; }
.reel .rail span { width: 16px; height: 16px; display: grid; place-items: center; color: #fff; }
.reel .cap { position: absolute; left: 9px; right: 28px; bottom: 16px; font-size: 8px; color: #fff; line-height: 1.3; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.reel .bar { position: absolute; left: 9px; right: 9px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); z-index: 2; }
.reel .bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 62%; border-radius: 3px; background: var(--gm-mint); }
.reel .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,16,.35) 0%, rgba(11,20,16,0) 30%, rgba(11,20,16,.7) 100%); z-index: 1; }

/* ---------- landing-page wireframe ---------- */
.lp { width: 100%; max-width: 460px; height: 100%; border-radius: 12px; border: 1px solid var(--gm-border); overflow: hidden; background: var(--gm-surface); box-shadow: var(--gm-shadow); display: flex; flex-direction: column; }
.lp .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--gm-border); background: var(--gm-surface-2); }
.lp .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--gm-border); display: inline-block; }
.lp .bar .url { margin-left: 8px; flex: 1; height: 13px; border-radius: 4px; background: var(--gm-bg); border: 1px solid var(--gm-border); }
.lp .view { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; padding: 14px; }
.lp .h { height: 12px; border-radius: 4px; background: var(--gm-surface-2); }
.lp .h.w1 { width: 80%; } .lp .h.w2 { width: 55%; }
.lp .htitle { height: 16px; width: 90%; border-radius: 4px; background: linear-gradient(90deg, var(--gm-mint), var(--gm-emerald)); }
.lp .stars { color: var(--gm-gold); font-size: 10px; letter-spacing: 1.5px; }
.lp .rev { font-size: 8.5px; color: var(--gm-muted); }
.lp .buy { margin-top: 4px; font-size: 9px; font-weight: 700; color: #06120D; background: var(--gm-gradient); padding: 7px 12px; border-radius: 999px; display: inline-block; }
.lp .prod { border-radius: 10px; border: 1px solid var(--gm-border); }
.lp .left { display: flex; flex-direction: column; gap: 9px; }
.lp .trust { display: flex; gap: 6px; margin-top: 2px; }
.lp .trust i { height: 9px; width: 30px; border-radius: 3px; background: var(--gm-surface-2); }

/* ---------- dashboard ---------- */
.dash { width: 100%; max-width: 480px; height: 100%; display: flex; flex-direction: column; gap: 10px; }
.dash .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dash .tile { background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 9px; padding: 8px 9px; }
.dash .tile .v { font-size: 15px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.dash .tile .l { font-size: 7.5px; color: var(--gm-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.dash .chart { flex: 1 1 auto; min-height: 0; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.dash .chart .ct { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 8px; color: var(--gm-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; white-space: nowrap; }
.dash .chart .ct b { color: var(--gm-mint); }
.dash .chart svg { flex: 1; width: 100%; height: 100%; }

/* ---------- generic chart cards (results) ---------- */
.viz { width: 100%; height: 100%; background: var(--gm-surface); border: 1px solid var(--gm-border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.viz .vt { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.viz .vt .lbl { font-size: 10px; color: var(--gm-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; white-space: nowrap; }
.viz .vt .pill { font-size: 10px; font-weight: 700; color: #06120D; background: var(--gm-gradient); padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; }
.viz .vt .pill.gold { background: var(--gm-gold-gradient); color: #2A2008; }
.viz .body { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viz .body > div { width: 100%; max-width: 660px; margin: 0 auto; }
.viz svg { width: 100%; height: 100%; }

/* before/after creative grid */
.ba { display: flex; gap: 36px; width: 100%; align-items: center; justify-content: center; }
.ba .side { display: flex; flex-direction: column; gap: 9px; }
.ba .side .cap { font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ba .side .cap b { font-weight: 700; }
.ba .grid { display: grid; grid-template-columns: repeat(2, 56px); grid-auto-rows: 66px; gap: 7px; }
.ba .cell { width: 56px; height: 66px; border-radius: 6px; border: 1px solid var(--gm-border); }
.ba .before .cap { color: var(--gm-muted); }
.ba .before .cell { background: repeating-linear-gradient(45deg, #1a2c23 0 7px, #16241d 7px 14px); filter: saturate(.4) brightness(.8); }
.ba .after .cap { color: var(--gm-mint); }
.ba .after .cell { position: relative; }
.ba .after .cell.on { border-color: rgba(43,232,168,.5); box-shadow: 0 0 0 1px rgba(43,232,168,.2); }
.ba .dot { width: 7px; height: 7px; border-radius: 50%; }

/* horizontal bar chart (angle breakdown) */
.bars { display: flex; flex-direction: column; gap: 11px; width: 100%; max-width: 520px; margin: 0 auto; justify-content: center; }
.bars .bar { display: grid; grid-template-columns: 92px 1fr 36px; align-items: center; gap: 12px; }
.bars .bar .nm { font-size: 9.5px; color: var(--gm-muted); text-align: right; white-space: nowrap; }
.bars .bar .track { display: block; height: 13px; border-radius: 999px; background: var(--gm-bg); border: 1px solid var(--gm-border); overflow: hidden; }
.bars .bar .fill { display: block; height: 100%; border-radius: 999px; background: var(--gm-gradient); }
.bars .bar .fill.dim { background: var(--gm-surface-2); }
.bars .bar .val { font-size: 9.5px; font-weight: 700; }
.bars .bar .val.win { color: var(--gm-mint); }
.bars .bar .val.dim { color: var(--gm-muted); }

@media (max-width: 560px) {
  .ad .hook { font-size: 9px; }
  .reel-set .reel:nth-child(3) { display: none; }
  .ad-set .ad:nth-child(3) { display: none; }
}
