/* Surfaces: CardStack, BeforeAfter demos (cp/surfaces.js). */

/* ---------- CardStack (the stack brings its own styles, web/lib) ---------- */

.cp-cs { overflow: hidden; margin: 0 auto; }
.cp-cs-card { border-radius: 20px; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12); }
.cp-cs-card.cp-cs-tile { border-radius: 18px; }
.cp-cs-card:focus-visible { outline-offset: 3px; }
.cp-cs-face { position: absolute; inset: 0; color: #fff; }
.cp-cs-strip { height: 58px; padding: 0 18px; display: flex; flex-direction: column; justify-content: center; }
.cp-cs-tag { font: 400 9.5px/1.2 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.08em; opacity: 0.6; }
.cp-cs-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; margin-top: 1px; line-height: 1.25; }
.cp-cs-line { position: absolute; left: 18px; bottom: 16px; font: 400 13px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: 0.08em; opacity: 0.85; }

/* ---------- BeforeAfter (the frame brings its own styles, web/lib) ---------- */

.cp-ba { width: 100%; max-width: 440px; background: #E5E5EA; }
.cp-ba:focus-visible { outline-offset: 3px; }
.cp-mode-tile.cp-is-before-after { padding: 16px; }
.cp-mode-tile .cp-ba { border-radius: 16px; }
.cp-ba img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Vivid, as in the demo: a warm to teal overlay blend, plus a touch of light. */
.cp-ba-grade, .cp-ba-lift { position: absolute; inset: 0; }
.cp-ba-grade { background: linear-gradient(rgba(255, 214, 140, 0.9), rgba(30, 120, 140, 0.8)); mix-blend-mode: overlay; }
.cp-ba-lift { background: rgba(255, 255, 255, 0.06); }
.cp-ba-line { background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); }
.cp-ba-knob { background: #fff; color: #1C1C1E; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22); }

/* Color cards: rich gradients with a soft glow and a glossy sheen, minimal content. */
.cp-cs-sunset, .cp-cs-violet, .cp-cs-lagoon, .cp-cs-aurora { position: absolute; inset: 0; }
.cp-cs-sunset::after, .cp-cs-violet::after, .cp-cs-lagoon::after, .cp-cs-aurora::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.04) 38%, rgba(255,255,255,0) 60%);
}
.cp-cs-sunset { background: radial-gradient(120% 90% at 0% 0%, #FFD7A8 0%, rgba(255,215,168,0) 55%), linear-gradient(135deg, #FF9A5A 0%, #FF4E7A 55%, #B34DFF 100%); }
.cp-cs-violet { background: radial-gradient(110% 90% at 100% 0%, #FF9BD2 0%, rgba(255,155,210,0) 50%), linear-gradient(140deg, #8E7BFF 0%, #5B3CC4 50%, #2A1B6E 100%); }
.cp-cs-lagoon { background: radial-gradient(120% 90% at 0% 100%, #B6FFE6 0%, rgba(182,255,230,0) 50%), linear-gradient(135deg, #3FE0B8 0%, #19A7A8 50%, #0D5C74 100%); }
.cp-cs-aurora { background: radial-gradient(120% 100% at 100% 100%, #7BF1FF 0%, rgba(123,241,255,0) 50%), linear-gradient(135deg, #5D7BFF 0%, #3D3AE0 50%, #17184A 100%); }
