/* Landing page animations (all disabled under prefers-reduced-motion via style.css). */
.phone-demo { display: flex; justify-content: center; }
.pd-phone { position: relative; width: 280px; height: 560px; border-radius: 42px; background: #0b0d16; border: 3px solid transparent;
  background-image: linear-gradient(#0b0d16, #0b0d16), linear-gradient(140deg, #7c5cff, #22d3ee); background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 40px 80px rgba(124,92,255,.28), 0 0 0 10px rgba(255,255,255,.02); overflow: hidden; }
.pd-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 99px; background: #000; z-index: 3; }
.pd-scene { position: absolute; inset: 0; padding: 60px 22px 30px; display: flex; flex-direction: column; align-items: center; opacity: 0; animation: scene 12s infinite; }
.pd-scene.s2 { animation-delay: 4s; } .pd-scene.s3 { animation-delay: 8s; }
@keyframes scene { 0% { opacity: 0; transform: translateY(10px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; } }
.pd-label { font-weight: 700; margin-bottom: 26px; font-size: 15px; }
.pd-qr { position: relative; width: 200px; height: 200px; background: #fff; border-radius: 18px; padding: 14px; }
.pd-qr svg { width: 100%; height: 100%; }
.pd-scanline { position: absolute; left: 8px; right: 8px; height: 3px; top: 10px; background: linear-gradient(90deg, transparent, #22d3ee, transparent); box-shadow: 0 0 16px #22d3ee; animation: qrscan 1.6s ease-in-out infinite; }
@keyframes qrscan { 0%, 100% { top: 10px; } 50% { top: 186px; } }
.pd-face { position: relative; width: 200px; height: 250px; }
.pd-face svg { width: 100%; height: 100%; }
.pd-oval { position: absolute; left: 12%; right: 12%; top: 5%; bottom: 18%; border: 3px dashed #22d3ee; border-radius: 50%; animation: ovalpulse 1.6s ease-in-out infinite; }
@keyframes ovalpulse { 50% { border-color: #22c55e; transform: scale(1.03); } }
.pd-facescan { position: absolute; left: 18%; right: 18%; height: 2px; top: 12%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; animation: facescan 1.4s ease-in-out infinite; }
@keyframes facescan { 0%, 100% { top: 12%; } 50% { top: 72%; } }
.pd-dot { position: absolute; width: 7px; height: 7px; margin: -3px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.pd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.pd-grid i { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(135deg, var(--c1), var(--c2)); opacity: 0; animation: tilein 12s infinite; animation-delay: calc(8s + var(--d, 0s)); position: relative; }
.pd-grid i::after { content: "✓"; position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; display: grid; place-items: center; }
.pd-grid i:nth-child(2) { --d: .25s; } .pd-grid i:nth-child(3) { --d: .5s; } .pd-grid i:nth-child(4) { --d: .75s; } .pd-grid i:nth-child(5) { --d: 1s; } .pd-grid i:nth-child(6) { --d: 1.25s; }
@keyframes tilein { 0% { opacity: 0; transform: scale(.7); } 3%, 26% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; } }
.pd-found { margin-top: 14px; background: var(--grad); padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; }

/* How it works */
.how { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.how-tabs { display: flex; flex-direction: column; gap: 8px; }
.how-tabs button { text-align: left; background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 14px; padding: 16px 18px; font: 600 15px var(--font); cursor: pointer; display: flex; gap: 12px; align-items: center; transition: .2s; }
.how-tabs button b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--text); flex: 0 0 auto; }
.how-tabs button.on { color: var(--text); border-color: var(--accent); box-shadow: var(--glow); }
.how-tabs button.on b { background: var(--grad); }
.how-panel { min-height: 260px; display: grid; grid-template-columns: 1fr 180px; gap: 20px; align-items: center; }
.how-panel .big { font-size: 96px; text-align: center; filter: drop-shadow(0 10px 30px rgba(124,92,255,.4)); animation: float 5s ease-in-out infinite; }
.how-panel ul { padding-left: 18px; color: var(--muted); }

/* Live flow */
.flow { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.2fr 1fr; align-items: center; gap: 8px; max-width: 960px; margin: 0 auto; }
.flow-node { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 10px; display: flex; flex-direction: column; gap: 4px; }
.flow-node.ai { border-color: rgba(124,92,255,.5); box-shadow: var(--glow); }
.flow-node .fi { font-size: 34px; }
.flow-pipe { position: relative; height: 4px; background: var(--panel-3); border-radius: 4px; overflow: hidden; }
.flow-pipe i { position: absolute; top: 0; width: 26%; height: 100%; background: var(--grad); border-radius: 4px; animation: pipe 2.4s linear infinite; }
.flow-pipe i:nth-child(2) { animation-delay: .8s; } .flow-pipe i:nth-child(3) { animation-delay: 1.6s; }
@keyframes pipe { from { left: -30%; } to { left: 104%; } }

/* Showcase */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.sc { position: relative; aspect-ratio: 4/5; border-radius: 18px; overflow: hidden; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, var(--a), var(--b)); transition: transform .3s; }
.sc:hover { transform: translateY(-4px); }
.sc::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 25%, rgba(255,255,255,.35), transparent 70%), linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.sc .e { position: absolute; top: 14px; left: 14px; font-size: 34px; }
.sc b, .sc span { position: relative; } .sc span { font-size: 13px; color: rgba(255,255,255,.85); }
.benefit ul { list-style: none; padding: 0; margin: 14px 0 22px; }
.benefit li { padding: 8px 0 8px 30px; position: relative; color: #d6dbee; }
.benefit li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: rgba(34,211,238,.15); color: var(--accent-2); font-size: 12px; display: grid; place-items: center; font-weight: 800; }

/* Reduced motion: show the final "photos found" frame without animating. */
@media (prefers-reduced-motion: reduce) {
  .pd-scene.s3, .pd-grid i { opacity: 1 !important; }
}
@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; } .how-tabs { flex-direction: row; overflow-x: auto; } .how-tabs button { flex: 0 0 auto; }
  .how-panel { grid-template-columns: 1fr; } .how-panel .big { font-size: 64px; order: -1; }
  .flow { grid-template-columns: 1fr; } .flow-pipe { height: 34px; width: 4px; margin: 0 auto; }
  .flow-pipe i { width: 100%; height: 30%; left: 0 !important; animation-name: pipev; } @keyframes pipev { from { top: -30%; } to { top: 104%; } }
  .pd-phone { width: 250px; height: 500px; }
}

/* Landing refresh (update 7) */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.why .ic, .up-cards .ic { font-size: 19px; margin-bottom: 12px; }
.why h3, .up-cards h3 { margin: 4px 0 6px; font-size: 17px; }
.why p, .up-cards p { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.split.rev > figure { order: -1; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; margin: 8px 0 12px; }
.steps { padding-left: 22px; margin: 18px 0 22px; line-height: 1.6; color: #d6dbee; }
.steps li { padding: 4px 0; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px rgba(0,0,0,.45); display: block; background: #0d1018; }
.shot figcaption { margin-top: 10px; text-align: center; }
.qr-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.qr-compare .card { display: flex; flex-direction: column; gap: 4px; padding: 14px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 22px; }
.ticks li { padding: 8px 0 8px 30px; position: relative; color: #d6dbee; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: rgba(34,211,238,.15); color: var(--accent-2); font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.tag.live { background: rgba(34,197,94,.15); color: #4ade80; }
.tag.soon { background: rgba(250,204,21,.14); color: #facc15; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } .split.rev > figure { order: 0; } }
@media (max-width: 520px) { .qr-compare { grid-template-columns: 1fr; } }
/* Static QR headline section */
.sq { background: radial-gradient(800px 380px at 70% 20%, rgba(34,211,238,.08), transparent 70%), radial-gradient(700px 360px at 20% 80%, rgba(124,92,255,.08), transparent 70%); }
.sq-title { font-size: clamp(30px, 5vw, 52px); letter-spacing: .01em; line-height: 1.05; }
.sq-compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); gap: 18px; align-items: stretch; margin-top: 10px; }
.sq-compare > .card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.sq-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.sq-tag.bad { background: rgba(248,113,113,.14); color: #fca5a5; }
.sq-tag.good { background: rgba(34,197,94,.14); color: #4ade80; }
.sq-posters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sq-poster { border-radius: 12px; padding: 12px 10px; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 30%, #0d1020), #0d1020); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .85; }
.sq-poster b { font-size: 13px; }
.sq-poster span { font-size: 11px; color: #94a3b8; }
.sq-mini { width: 44px; height: 44px; border-radius: 6px; background: #fff; display: block;
  background-image: linear-gradient(#0b1028 0 0), linear-gradient(#0b1028 0 0), linear-gradient(#0b1028 0 0), repeating-linear-gradient(90deg, #0b1028 0 3px, transparent 3px 7px);
  background-size: 12px 12px, 12px 12px, 12px 12px, 18px 18px; background-position: 4px 4px, 28px 4px, 4px 28px, 22px 22px; background-repeat: no-repeat; }
.sq-arrow { align-self: center; font-size: 34px; color: #22d3ee; }
.sq-hub { display: grid; grid-template-columns: 140px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 10px 18px; align-items: center; }
.sq-qr { grid-row: 1 / 3; width: 140px; height: 140px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 4px rgba(34,211,238,.25), 0 18px 40px rgba(0,0,0,.4); }
.sq-hub-label { font-size: 13px; letter-spacing: .08em; color: #a5f3fc; }
.sq-events { display: grid; gap: 8px; position: relative; }
.sq-ev { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); transition: background .35s, border-color .35s, transform .35s; }
.sq-ev b { flex: 1; font-size: 14px; }
.sq-ev em { font-style: normal; font-size: 11px; color: #94a3b8; }
.sq-dot { width: 9px; height: 9px; border-radius: 50%; background: #475569; transition: background .35s, box-shadow .35s; }
.sq-ev.on { background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.5); transform: translateX(4px); }
.sq-ev.on .sq-dot { background: #22d3ee; box-shadow: 0 0 0 4px rgba(34,211,238,.2); }
.sq-ev.on em { color: #67e8f9; font-weight: 600; }
.sq-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.sq-steps li { position: relative; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; }
.sq-steps li span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: linear-gradient(135deg, #7c5cff, #22d3ee); color: #fff; margin-bottom: 4px; }
.sq-steps li em { font-style: normal; font-size: 13px; color: #94a3b8; }
.sq-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: #22d3ee; font-weight: 700; z-index: 1; }
.sq-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.sq-benefits div { padding: 14px 16px; border-radius: 12px; border-left: 3px solid #22d3ee; background: rgba(255,255,255,.03); display: flex; flex-direction: column; gap: 3px; }
.sq-benefits span { font-size: 13px; color: #94a3b8; }
.sq-shot { max-width: 900px; margin: 26px auto 0; }
@media (max-width: 900px) {
  .sq-compare { grid-template-columns: 1fr; } .sq-arrow { transform: rotate(90deg); justify-self: center; }
  .sq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sq-steps li::after { display: none; }
  .sq-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sq-hub { grid-template-columns: 1fr; justify-items: center; text-align: center; } .sq-qr { grid-row: auto; width: 120px; height: 120px; } .sq-events { width: 100%; }
  .sq-benefits { grid-template-columns: 1fr; }
}