/* "What Screencap can and cannot see" animation (security page).
   Without JS (or with reduced motion) the figure shows its final state. */
.se { margin: 24px 0 8px; }
.se-card { position: relative; background: var(--card); border-radius: 30px; padding: 18px 18px 14px; box-shadow: 0 6px 0 rgba(11,36,64,.08), 0 26px 60px rgba(11,36,64,.11); display: grid; gap: 14px; }
.se-stage { display: grid; }
.se-stage > * { grid-area: 1 / 1; min-width: 0; }

/* The stored recording card */
.se-rec { border: 3px solid var(--navy); border-radius: 18px; background: #fff; box-shadow: 0 4px 0 var(--navy); padding: 10px 12px 12px; display: grid; gap: 10px; align-content: start; transition: opacity .4s ease, transform .5s cubic-bezier(.3,1.3,.5,1); }
.se-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; font: 800 clamp(14px, 1.9vw, 17px)/1.2 var(--display); color: var(--navy); white-space: nowrap; }
.se-title span { overflow: hidden; text-overflow: ellipsis; }
.se-title em { font-style: normal; font-weight: 600; color: var(--body); opacity: .75; }
.se-body { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 14px; align-items: stretch; min-width: 0; }

/* Video area: scrambled tiles, eye-slash badge, scanner */
.se-video { position: relative; align-self: start; width: 100%; aspect-ratio: 16 / 10; border: 3px solid var(--navy); border-radius: 12px; overflow: hidden; background: var(--navy); display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(6, 1fr); }
.se-video i { display: block; background-color: #1B3A5C; transition: background-color .5s ease; }
.se-badge { position: absolute; left: 50%; top: 50%; margin: -22px 0 0 -22px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); z-index: 2; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .25s; }
.se-badge svg { width: 22px; height: 22px; }
.se-scan-v { position: absolute; left: 0; top: 0; bottom: 0; width: 14%; z-index: 1; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,216,77,0), rgba(255,216,77,.55) 80%, #FFD84D 96%, #fff 100%); transform: translateX(-100%); }

/* Metadata panel */
.se-meta { position: relative; display: grid; align-content: space-between; gap: 4px; min-width: 0; }
.se-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 8px; border-radius: 9px; font-size: clamp(12px, 1.5vw, 14px); line-height: 1.25; color: var(--navy); background-color: transparent; opacity: .32; transition: opacity .35s ease, background-color .35s ease; }
.se-row::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #9DB2C9; border: 2px solid var(--navy); transition: background-color .3s; }
.se-row b { flex: none; font: 700 1em/1.2 var(--display); }
.se-row span { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .92em/1.2 ui-monospace, "SF Mono", Menlo, monospace; color: var(--body); }
.se-row.is-lit { opacity: 1; background-color: var(--bg); }
.se-row.is-lit::before { background-color: var(--sun); }
.se-scan-h { position: absolute; left: -4px; right: -4px; top: 0; height: 10px; border-radius: 6px; z-index: 1; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,216,77,0), rgba(255,216,77,.7) 60%, #FFD84D 100%); box-shadow: 0 2px 0 var(--navy); }

/* Final comparison lists */
.se-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.se-list { border: 3px solid var(--navy); border-radius: 18px; padding: 10px 14px 12px; background: #fff; box-shadow: 0 4px 0 var(--navy); min-width: 0; }
.se-list.can { background: #FFF8DC; }
.se-list h3 { margin: 0 0 6px; font: 800 clamp(15px, 2vw, 18px)/1.2 var(--display); letter-spacing: -.01em; color: var(--navy); }
.se-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.se-list li { display: flex; gap: 8px; font-size: clamp(12px, 1.5vw, 14px); line-height: 1.3; color: var(--navy); }
.se-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--navy); background: var(--sun); }
.se-list.cannot li::before { background: var(--navy); }

/* Share link pill */
.se-linkrow { display: flex; align-items: center; gap: 10px; min-width: 0; transition: opacity .4s; }
.se-link { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 14px; background: var(--bg); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 0 4px 0 var(--navy); color: var(--navy); }
.se-link > svg { flex: none; width: 18px; height: 18px; }
.se-url { min-width: 0; display: flex; align-items: center; gap: 4px; font: 600 clamp(12px, 1.6vw, 15px)/1.3 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; }
.se-url-pub { min-width: 0; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; padding: 1px 5px; background: var(--sun); box-shadow: 0 0 0 2px var(--navy); transition: background-color .3s; }
.se-url-key { flex: none; border-radius: 6px; padding: 1px 6px; background: var(--navy); color: #fff; box-shadow: 0 0 0 2px var(--navy); transition: background-color .3s; }
.se-never { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 8px; background: var(--rec); color: #fff; border: 2px solid var(--navy); font: 800 11px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }

/* Caption + controls */
.se-foot { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.se-step { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--sun); border: 3px solid var(--navy); box-shadow: 0 3px 0 var(--navy); font: 800 14px/1 var(--display); color: var(--navy); }
.se-cap { flex: 1; min-width: 0; margin: 0; font-size: 15px; line-height: 1.35; color: var(--body); transition: opacity .25s; }
.se-cap b { color: var(--navy); }
.se-btn { flex: none; display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 12px; border: 2.5px solid var(--navy); background: #fff; color: var(--navy); font: 700 13px/1 var(--display); cursor: pointer; box-shadow: 0 3px 0 var(--navy); }
.se-btn:active { translate: 0 2px; box-shadow: 0 1px 0 var(--navy); }
.se-btn svg { width: 12px; height: 12px; }
.se-steps { margin: 0; padding: 0 4px; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: var(--body); counter-reset: se; }
.se-steps li { display: flex; gap: 8px; }
.se-steps li::before { counter-increment: se; content: counter(se); flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--navy); font: 800 12px/1 var(--display); color: var(--navy); }

/* JS-driven states. Default (no JS): final card, everything lit, captions list shown. */
.se.is-js .se-steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.se.is-js .se-btn { display: inline-flex; }
.se:not(.is-js) .se-foot { display: none; }
.se:not(.is-js) .se-row { opacity: 1; background-color: var(--bg); }
.se:not(.is-js) .se-row::before { background-color: var(--sun); }
.se.is-js .se-rec.is-off { opacity: 0; transform: translateY(14px) scale(.97); }
.se.is-js .se-rec.is-hidden { opacity: 0; transform: none; }
.se.is-js .se-badge.is-off { opacity: 0; transform: scale(.4); }
.se.is-js .se-lists.is-on { opacity: 1; pointer-events: auto; }
.se.is-js .se-linkrow.is-off { opacity: .3; }
.se.is-js .se-linkrow.is-off .se-url-pub { background-color: transparent; box-shadow: none; }
.se.is-js .se-linkrow.is-off .se-never { visibility: hidden; }

@media (max-width: 560px) {
  .se-card { padding: 14px 12px 12px; border-radius: 24px; }
  .se-rec { padding: 8px 8px 10px; }
  .se-body { gap: 8px; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); }
  .se-badge { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .se-badge svg { width: 17px; height: 17px; }
  .se-row { padding: 3px 4px; gap: 6px; font-size: 11.5px; }
  .se-row span { display: none; }
  .se-lists { gap: 8px; }
  .se-list { padding: 8px 10px 10px; border-radius: 14px; }
  .se-list li { font-size: 11.5px; gap: 6px; }
  .se-link { padding: 8px 10px; gap: 6px; }
  .se-link > svg { display: none; }
  .se-url { font-size: 11.5px; }
  .se-linkrow { flex-direction: column; align-items: stretch; gap: 6px; }
  .se-never { align-self: flex-start; margin-left: 4px; }
  .se-cap { font-size: 14px; }
}
/* Break out of the narrow text column on wide screens so the card has room. */
@media (min-width: 900px) {
  .se { margin-left: calc(50% - min(440px, 50vw - 24px)); margin-right: calc(50% - min(440px, 50vw - 24px)); }
}
