/* lumedrop.app's own blocks inside the Lovetere frame (family/FRAME.md, "custom block"):
   the animated transfer drawing on the home pages and the light beam on the hand-off pages.
   Rules moved unchanged from the old style.css; the variables below are this file's own. */
:root {
  --ink: #1b1a17;
  --accent-fill: #e5a800;
  --glow: #e5a800;
  --on-accent: #2d1d00;
  --signal-surface: #172033;
  --signal-ink: #f8f5eb;
  --signal-accent: #ffe9a6;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f4f1e8; --accent-fill: #f2b21b; --glow: #ffc84a; --on-accent: #2d1d00; }
}
.fr-custom .beam { margin-inline: auto; }
.beam {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
}
.beam .screen {
  width: 2.2rem;
  height: 1.6rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  flex: none;
}
.beam .cells {
  display: flex;
  gap: 0.25rem;
  flex: none;
}
.beam .cells i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--glow);
  display: block;
  animation: drift 1.8s ease-in-out infinite;
}
.beam .cells i:nth-child(2) { animation-delay: 0.15s; opacity: 0.8; }
.beam .cells i:nth-child(3) { animation-delay: 0.3s; opacity: 0.6; }
.beam .cells i:nth-child(4) { animation-delay: 0.45s; opacity: 0.4; }
.beam .lens {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  flex: none;
  position: relative;
}
.beam .lens::after {
  content: "";
  position: absolute;
  inset: 0.32rem;
  border-radius: 50%;
  background: var(--ink);
}
@keyframes drift {
  0%, 100% { transform: translateX(0); opacity: 0.25; }
  50% { transform: translateX(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .beam .cells i {animation: none; opacity: 0.7;}
}
.transfer-demo {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 34rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 2rem;
  color: var(--signal-ink);
  background:
    radial-gradient(circle at 68% 28%, rgb(232 165 0 / 18%), transparent 13rem),
    var(--signal-surface);
  box-shadow: 0 36px 80px rgb(23 32 51 / 20%);
}
.transfer-demo::before {
  content: "";
  position: absolute;
  inset: auto -5rem -8rem auto;
  width: 20rem;
  height: 20rem;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
}
.demo-topline,
.demo-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgb(248 245 235 / 62%);
}
.secure-pill {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 999px;
  color: var(--signal-accent);
  background: rgb(255 255 255 / 5%);
}
.device-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.15rem);
  margin: 4.25rem 0 3.5rem;
}
.mini-device {
  position: relative;
  height: 12.5rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 1.35rem;
  background: rgb(255 255 255 / 5%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}
.device-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgb(248 245 235 / 48%);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.pixel-field {
  position: absolute;
  inset: 3.2rem 1.2rem 1.2rem;
  border-radius: 0.6rem;
  background:
    linear-gradient(90deg, transparent 47%, rgb(23 32 51 / 70%) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, rgb(23 32 51 / 70%) 47% 53%, transparent 53%),
    conic-gradient(from 45deg, #e8a500, #f6cf6d, #f8f5eb, #e8a500);
  background-size: 1.15rem 1.15rem, 1.15rem 1.15rem, 100% 100%;
}
.camera-device { display: grid; place-items: center; }
.camera-lens {
  width: 5rem;
  height: 5rem;
  border: 1rem solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0 10%, #38435a 11% 36%, #0c111c 37% 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 12%), 0 0 3rem rgb(232 165 0 / 15%);
}
.light-path { display: flex; gap: 0.28rem; }
.light-path i {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 2px;
  background: var(--glow);
  animation: demo-pulse 1.5s ease-in-out infinite;
}
.light-path i:nth-child(2) { animation-delay: 100ms; }
.light-path i:nth-child(3) { animation-delay: 200ms; }
.light-path i:nth-child(4) { animation-delay: 300ms; }
.light-path i:nth-child(5) { animation-delay: 400ms; }
@keyframes demo-pulse {
  0%, 100% { opacity: 0.25; transform: translateX(-2px); }
  50% { opacity: 1; transform: translateX(2px); }
}
.demo-file {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 6%);
}
.file-icon {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.85rem;
  border-radius: 0.45rem;
  color: var(--on-accent);
  background: var(--accent-fill);
  font-size: 0.62rem;
  font-weight: 700;
}
.file-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.file-copy strong { font-size: 0.95rem; }
.file-copy span { color: rgb(248 245 235 / 54%); font-size: 0.72rem; }
.file-check { color: var(--accent-fill); font-size: 1.2rem; }
.demo-progress {
  position: relative;
  z-index: 1;
  height: 0.35rem;
  margin: 1.35rem 0 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 9%);
}
.demo-progress span { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--accent-fill); }
.demo-caption strong { color: var(--signal-ink); }
@media (prefers-reduced-motion: reduce) {
  .light-path i {animation: none; opacity: 0.7;}
}
@media (max-width: 880px) {
  .transfer-demo {min-height: 31rem;}
}
@media (max-width: 620px) {
  .transfer-demo {min-height: auto; border-radius: 1.5rem;}
  .demo-topline,
  .demo-file {align-items: flex-start; flex-direction: column;}
  .device-row {margin-block: 3rem 2.5rem;}
  .mini-device {height: 9.5rem; border-radius: 1rem;}
  .pixel-field {inset: 2.8rem 0.8rem 0.8rem; background-size: 0.85rem 0.85rem, 0.85rem 0.85rem, 100% 100%;}
  .camera-lens {width: 3.8rem; height: 3.8rem; border-width: 0.75rem;}
  .light-path {gap: 0.18rem;}
  .light-path i {width: 0.28rem; height: 0.28rem;}
}
/* the drawing fills the hero's picture column, and its labels break rather than push the page sideways at 200% text */
.fr-hero__media > .fr-custom { width: 100%; min-width: 0; }
.transfer-demo span { overflow-wrap: anywhere; }
