/* ============================================================
   WORKZOOM CARD DEPTH (rhythm.css)

   Page stays white. Cards stay white. Brand color stays green-only.
   Depth comes from:
     1. Subtle vertical gradient surface (white → 1.5% navy whisper)
     2. Navy-tinted hairline border (replaces neutral grey)
     3. 4-layer deep shadow with long tail (Mercury/Linear pattern)
     4. Brighter inset top-edge highlight
     5. Hover: deeper shadow + brighter inset (no color shift)

   Applied to canonical card classes site-wide. No new colors,
   no section bands, no random suite tints.

   Loads AFTER atoms.css so equal-specificity rules win cleanly.
============================================================ */

/* ── Canonical card depth ─────────────────────────────────── */
.wz-diff-card,
.wz-cs-card,
.wz-cs-stage,
.wz-blog-recent-card,
.wz-orb-card {
  /* 2026-06-08 (Matthew /iterate home-diff): flattened the dated fill gradient
     + heavy shadow to a flat surface + one tight low-spread shadow (Linear /
     Vercel card register). Navy hero cards override `background` themselves so
     they keep their fill; this only flattens the white cards. */
  background: var(--surface-card);
  border-color: var(--border-card-tinted);
  box-shadow: 0 1px 2px var(--teal-wash-06), 0 12px 32px -16px var(--teal-wash-18);
}

/* wz-icta-card removed from this group 2026-05-13 — v6 navy banner
   has the section background; card itself is transparent. Was forcing
   a white gradient over the navy. */

.wz-diff-card:hover,
.wz-cs-card:hover,
.wz-blog-recent-card:hover,
.wz-orb-card:hover {
  box-shadow: 0 2px 4px var(--teal-wash-06), 0 18px 44px -18px var(--teal-wash-18);
}

/* ── Screenshot mat — self-service personas ───────────────────
   The .wz-ess-art wrapper sits behind each persona screenshot.
   Promote it to a tinted matte so the screenshot reads as a
   framed product photograph instead of a floating image. */
.wz-ess-art {
  background: var(--surface-tint-warm);
  border: 1px solid var(--surface-tint-warm-border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 2.4vw, 36px);
  box-shadow: var(--shadow-card-deep);
}
/* Mobile: shrink the matte padding so the persona screenshot fills more of the
   phone (2026-06-08, paired with the wz-ess inset trims in atoms.css). Must live
   here in rhythm.css to win source order over the clamp above. */
@media (max-width: 640px) {
  .wz-ess-art { padding: var(--gap-xs); }
}

/* The image inside the matte gets a subtle inset shadow + tighter radius */
.wz-ess-art .wz-ess-shot {
  border-radius: var(--r-md);
  box-shadow:
    0 1px 2px #0f182914,
    0 4px 12px #0f18290f;
}

/* Hover state — the matte lifts, the screenshot lifts more */
.wz-ess-row:hover .wz-ess-art {
  box-shadow: var(--shadow-card-deep-hover);
}

/* The art-tag chip needs to repos onto the matte's interior, not absolute
   to the image. Adjust offset so it sits at the inner edge of the padding. */
.wz-ess-art-tag {
  top: clamp(28px, 3vw, 44px);
  right: clamp(28px, 3vw, 44px);
}

/* ── Homepage chrome refinements (2026-05-08) ─────────────────
   No background orbs on page-level surfaces. Color and depth live
   on cards, not in section atmosphere. Cards behind images use the
   wz-screenshot-frame primitive for clean coloured matting. */

/* Disable section-level radial-gradient orbs on the homepage — pseudo-element
   atmosphere. Page stays clean white; depth lives on cards. EXCEPTION: the hero
   orb (.wz-hero-orb) is intentionally kept — restored 2026-06-04 per Matthew as
   a soft green glow behind the laptop (see assets/css/scratch.css hero block). */
.wz-home-hero::after,
.wz-book::after,
.wz-icta::before,
.wz-icta::after,
.wz-cs-section::before,
.wz-self-service::before {
  display: none !important;
}
/* .ft-glass-zone::before removed 2026-05-14 — the .ft-glass-zone wrapper
   itself was stripped from base.html, no orphan selector to suppress. */

/* Stat strip — no card container. Stats sit on the white page directly.
   Background, border, shadow, radius all stripped (2026-05-08). */
.wz-proof-inner {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* ── Screenshot frame primitive (opt-in) ─────────────────────
   Use via the wz-screenshot.html partial:
     {% include "wz-screenshot.html" with { src, alt, caption } %}
─────────────────────────────────────────────────────────── */
.wz-screenshot-frame {
  background: var(--surface-tint-warm);
  border: 1px solid var(--surface-tint-warm-border);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2vw, 28px);
  box-shadow: var(--shadow-card-deep);
  margin: 0;
}
.wz-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow:
    0 1px 2px #0f182914,
    0 4px 12px #0f18290f;
}
.wz-screenshot-caption {
  margin: 12px 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  line-height: 1.55;
}
.wz-screenshot-frame--warm {
  background: var(--surface-tint-warm);
  border-color: var(--surface-tint-warm-border);
}
