/* Explainer: four glass scenes over soft drifting color. */
.explain { padding-top: 40px; border-top: 0; }
.stage {
  position: relative; overflow: hidden; isolation: isolate; transform: translateZ(0);
  aspect-ratio: 16 / 9; border-radius: 20px; border: 1px solid var(--line);
  background: #f3f1eb;
}
.orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Soft color pools drawn as gradients (no filter: blur), cheap for Safari to composite. */
.orbs i {
  position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  animation: drift 22s ease-in-out infinite alternate; will-change: transform;
}
.orbs i:nth-child(1) { background: radial-gradient(circle, rgba(207, 225, 199, 0.95) 0%, rgba(207, 225, 199, 0) 62%); left: -18%; top: -26%; }
.orbs i:nth-child(2) { background: radial-gradient(circle, rgba(196, 222, 241, 0.95) 0%, rgba(196, 222, 241, 0) 62%); right: -22%; top: 4%; animation-duration: 26s; animation-delay: -6s; }
.orbs i:nth-child(3) { background: radial-gradient(circle, rgba(242, 223, 175, 0.9) 0%, rgba(242, 223, 175, 0) 62%); left: 16%; bottom: -42%; animation-duration: 30s; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(6%, 8%, 0) scale(1.08); } }

/* Painted glass. Live backdrop-filter skips painting on iPhone Safari when panels fade or move,
   and the backdrop here is already soft, so a translucent gradient plus highlights reads the same. */
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(17, 17, 17, 0.03),
              0 0 0 1px rgba(17, 17, 17, 0.03), 0 1px 2px rgba(17, 17, 17, 0.04), 0 14px 36px rgba(17, 17, 17, 0.07);
}

.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; visibility: hidden; }
.scene-label {
  position: absolute; top: 5.5%; left: 50%; transform: translateX(-50%);
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* scene 1: tools */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: min(520px, 88%); }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; }
.tile .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tile .ic svg { width: 18px; height: 18px; }
.tile b { display: block; font: 600 15px/1.2 var(--sans); color: var(--ink); }
.tile span.meta { display: block; font: 500 11.5px/1.4 var(--mono); color: var(--muted); margin-top: 3px; }

/* scene 2: redaction */
.doc { width: min(500px, 88%); padding: 24px 26px; position: relative; overflow: hidden; }
.doc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.doc-head b { font: 600 14px/1 var(--sans); color: var(--ink); }
.doc-head span { font: 500 11px/1 var(--mono); color: var(--muted); }
.doc p { margin: 0; padding: 9px 0; border-top: 1px solid rgba(17, 17, 17, 0.06); font-size: 14.5px; line-height: 1.5; color: var(--body); }
.pii { position: relative; display: inline-block; white-space: nowrap; }
.pii .bar { position: absolute; inset: 2px -2px; border-radius: 4px; background: #2f3437; transform: scaleX(0); transform-origin: left; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; pointer-events: none;
  background: linear-gradient(180deg, rgba(31, 108, 159, 0), rgba(31, 108, 159, 0.10), rgba(31, 108, 159, 0)); opacity: 0; }
.badge-ok { display: inline-block; margin-top: 12px; }

/* scene 3: licensing */
.flow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; width: min(580px, 90%); }
.mini { width: 132px; padding: 16px; }
.mini i { display: block; height: 7px; border-radius: 4px; background: rgba(17, 17, 17, 0.12); margin-top: 8px; }
.mini i.r { background: #2f3437; width: 46%; }
.mini b { font: 600 13px/1 var(--sans); color: var(--ink); }
.mini .tag { margin-top: 12px; font-size: 9.5px; padding: 5px 8px; }
.track { position: relative; height: 2px; }
.track .dash { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.3) 0 4px, transparent 4px 9px); }
.packet { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); }
.lab { width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; position: relative; }
.lab b { display: block; font: 600 14px/1.2 var(--sans); color: var(--ink); }
.lab span { display: block; font: 500 10.5px/1.3 var(--mono); color: var(--muted); margin-top: 4px; }
.lab .ring { position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid rgba(52, 101, 56, 0.5); opacity: 0; }

/* scene 4: paid */
.paid { text-align: center; width: min(620px, 92%); }
.paid .big { font: 400 clamp(44px, 7vw, 88px)/1 var(--serif); letter-spacing: -0.035em; color: var(--ink); }
.paid .sub { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.checks { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.checks .glass { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); }
.checks svg { width: 14px; height: 14px; color: var(--green); }

/* play / pause */
.stage-ctl { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 0; color: var(--ink); }
.stage-ctl svg { width: 12px; height: 12px; }

/* captions */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 28px; }
.cap { text-align: left; background: none; border: 0; padding: 18px 20px 0 0; cursor: pointer; font: inherit; color: inherit; position: relative; }
.cap + .cap { padding-left: 20px; }
.cap::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.cap + .cap::before { left: 20px; }
.cap .fill { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--ink); }
.cap + .cap .fill { left: 20px; }
.cap .n { font: 500 12px/1 var(--mono); color: var(--muted); }
.cap h3 { margin: 12px 0 6px; font-size: 16px; color: var(--muted); transition: color .25s; }
.cap p { margin: 0; font-size: 14.5px; color: var(--muted); opacity: .7; transition: opacity .25s; }
.cap.on h3 { color: var(--ink); }
.cap.on p { opacity: 1; }

@media (max-width: 880px) {
  .stage { aspect-ratio: 4 / 5; }
  .tiles { grid-template-columns: 1fr; gap: 10px; width: min(360px, 90%); }
  .tile { padding: 14px; }
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .scene { padding: 16% 6% 8%; }
  .track { width: 2px; height: 44px; }
  .track .dash { background: repeating-linear-gradient(180deg, rgba(17, 17, 17, 0.3) 0 4px, transparent 4px 9px); }
  .mini { width: 150px; padding: 14px; }
  .lab { width: 112px; }
  .packet { left: 50%; top: 0; margin: -6px 0 0 -6px; }
  .caps { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .cap:nth-child(3) { padding-left: 0; }
  .cap:nth-child(3)::before, .cap:nth-child(3) .fill { left: 0; }
}
@media (max-width: 560px) {
  .doc { padding: 18px; }
  .doc p { font-size: 13px; }
  .checks .glass { font-size: 13px; }
}

@media (max-width: 560px) {
  .stage { border-radius: 16px; }
  .caps { margin-top: 20px; }
  .cap h3 { font-size: 15px; }
  .cap p { font-size: 13.5px; }
}

/* on an ink section: the stage becomes a softly glowing dark window, white glass pops */
.ink-section .stage { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.09); }
.ink-section .orbs i { opacity: 1; }
.ink-section .orbs i:nth-child(1) { background: radial-gradient(circle, rgba(150, 132, 255, 0.42) 0%, rgba(150, 132, 255, 0) 62%); }
.ink-section .orbs i:nth-child(2) { background: radial-gradient(circle, rgba(92, 200, 172, 0.34) 0%, rgba(92, 200, 172, 0) 62%); }
.ink-section .orbs i:nth-child(3) { background: radial-gradient(circle, rgba(255, 160, 120, 0.30) 0%, rgba(255, 160, 120, 0) 62%); }
.ink-section .glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 18px 50px rgba(0, 0, 0, 0.35); }
.ink-section .scene-label { color: rgba(255, 255, 255, 0.5); }
.ink-section .paid .big { color: #fff; }
.ink-section .paid .sub { color: rgba(255, 255, 255, 0.62); }
.ink-section .track .dash { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 4px, transparent 4px 9px); }
.ink-section .packet { background: #fff; box-shadow: 0 0 14px rgba(255, 255, 255, 0.6); }
.ink-section .cap::before { background: rgba(255, 255, 255, 0.12); }
.ink-section .cap .fill { background: linear-gradient(90deg, #f0a07a, #a996f0, #5cc3a8); }
.ink-section .cap .n { color: rgba(255, 255, 255, 0.45); }
.ink-section .cap h3 { color: rgba(255, 255, 255, 0.5); }
.ink-section .cap p { color: rgba(255, 255, 255, 0.5); }
.ink-section .cap.on h3 { color: #fff; }
.ink-section .cap.on p { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 880px) { .ink-section .track .dash { background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0 4px, transparent 4px 9px); } }
