/* =========================================================================
   mockups.css — compaction section · divergence chart · memory showcase
   Edge-faded product frames, monotone.
   ========================================================================= */

/* ── Shared faded product frame ──────────────────────────────────────────*/
.mockup-frame {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 40px 90px -40px rgba(0,0,0,0.85);
  overflow: hidden;
}
/* light bleed at the top edge */
.mockup-frame::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(220,226,244,0.5), transparent);
}

/* ============================================================ */
/* COMPACTION                                                   */
/* ============================================================ */
.compaction { padding: 120px 0; position: relative; }
.comp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.comp-stat { padding: 28px 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.comp-stat-num {
  font-family: var(--font-sans); font-size: clamp(30px, 3.6vw, 46px); font-weight: 600;
  letter-spacing: -0.03em; color: var(--fg); margin-bottom: 12px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.comp-stat-lab { font-size: 13px; line-height: 1.6; color: var(--fg-2); }
.comp-stat-num.compact { font-size: clamp(24px, 2.7vw, 34px); white-space: nowrap; letter-spacing: -0.02em; }

.comp-frame { padding: 24px 24px 8px; }
.comp-frame-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 12px; }
.comp-frame-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--fg-2); text-transform: uppercase; }
.comp-legend { display: flex; gap: 18px; }
.comp-leg { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); }
.comp-leg .swatch { width: 16px; height: 3px; border-radius: 2px; }
.comp-leg .swatch.grow { background: #8A8F98; }
.comp-leg .swatch.flat { background: #EAEDF4; }

.dv-chart { width: 100%; height: auto; display: block; }
.dv-anno { font-family: var(--font-mono); font-size: 12px; fill: var(--fg); }
.dv-anno.dim { fill: var(--fg-2); }
.dv-axis { font-family: var(--font-mono); font-size: 11px; fill: var(--fg-4); }

.comp-turns { margin-top: 8px; border-top: 1px solid var(--line); }
.comp-turns-row {
  display: grid; grid-template-columns: 2.4fr 1fr 1fr 0.8fr; align-items: center;
  padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.comp-turns-row:last-child { border-bottom: none; }
.comp-turns-row.head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-4); }
.comp-turns-row.head span:not(:first-child) { text-align: right; }
.comp-turns-row .ct-q { color: var(--fg); }
.comp-turns-row .ct-w { text-align: right; font-family: var(--font-mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.comp-turns-row .ct-c { text-align: right; font-family: var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.comp-turns-row .ct-s { text-align: right; font-family: var(--font-mono); color: var(--fg); }
.comp-foot { font-size: 13px; line-height: 1.6; color: var(--fg-3); text-align: center; max-width: 680px; margin: 28px auto 0; }
.comp-foot .mono { font-family: var(--font-mono); color: var(--fg-2); }
@media (max-width: 820px) {
  .comp-stats { grid-template-columns: 1fr; }
  .comp-turns-row { grid-template-columns: 1.6fr 1fr 1fr 0.7fr; font-size: 12px; }
}

/* ============================================================ */
/* MEMORY SHOWCASE                                              */
/* ============================================================ */
.showcase { padding: 40px 0 120px; position: relative; }
.showcase-frame {
  position: relative; padding: 0;
  /* fade the bottom of the product UI into the page — the "lots of fade" look */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.ms-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.018); }
.ms-head-left { display: flex; align-items: baseline; gap: 12px; }
.ms-title { font-size: 15px; font-weight: 600; color: var(--fg); }
.ms-count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-4); }
.ms-search { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; min-width: 240px; }
.ms-cols, .ms-row { display: grid; grid-template-columns: 1.1fr 4fr 1.4fr 0.6fr 0.6fr; align-items: center; gap: 16px; padding: 0 22px; }
.ms-cols { height: 38px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-4); border-bottom: 1px solid var(--line); }
.ms-cols span:nth-child(n+3), .ms-row span:nth-child(n+3) { text-align: right; justify-self: end; }
.ms-row { padding-top: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); transition: background .15s; }
.ms-row:hover { background: rgba(255,255,255,0.02); }
.ms-type { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); }
.ms-d { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.ms-text { font-size: 13.5px; color: var(--fg); line-height: 1.45; }
.ms-imp { display: inline-flex; align-items: center; gap: 9px; }
.ms-bar { width: 64px; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ms-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--fg-3), var(--fg)); border-radius: 3px; }
.ms-imp b { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); font-weight: 500; }
.ms-age { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.ms-cites { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
@media (max-width: 860px) {
  .ms-cols, .ms-row { grid-template-columns: 1fr 3fr 1.2fr; }
  .ms-cols span:nth-child(4), .ms-cols span:nth-child(5), .ms-row span:nth-child(4), .ms-row span:nth-child(5) { display: none; }
  .ms-search { display: none; }
}
