/* Feature cards: small live scenes in the app's style. Each card is a soft pastel field with a
   white app window in it, like the UI panels on lassie.ai. Everything is sized from the card
   (container units), and the loops only run on the card in front (.feat-card.play). */
.feat-card-inner { container-type: size; }
.feat-card[data-i="0"] { background: linear-gradient(150deg, #cfe6c4, #9cc7dc) !important; }
.feat-card[data-i="1"] { background: linear-gradient(150deg, #f3dcc4, #e9b7c6) !important; }
.feat-card[data-i="2"] { background: linear-gradient(150deg, #d6ebc9, #b9d8b2) !important; }
.feat-card[data-i="3"] { background: linear-gradient(150deg, #e2d4f3, #bcc7ee) !important; }
.sc { position: absolute; inset: 0; }
.sc * { animation-play-state: paused !important; }
.feat-card.play .sc * { animation-play-state: running !important; }

/* a pastel "photo", like the app's sample pictures */
.ph {
  display: block; border-radius: 1.1cqw;
  background:
    radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.38) 0 17%, transparent 17.5%),
    radial-gradient(circle at 74% 72%, rgba(255, 255, 255, 0.26) 0 25%, transparent 25.5%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.2) 0 9%, transparent 9.5%),
    linear-gradient(160deg, var(--a), var(--b));
}

/* the app window */
.sc-win {
  position: absolute; left: 50%; top: 54%; width: 82cqw; height: 80cqh; translate: -50% -50%;
  border-radius: 2.6cqw; background: #f8f8f6; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.06), 0 2cqw 6cqw rgba(40, 50, 60, 0.16);
  font-family: 'Google Sans', 'Geist', system-ui, sans-serif; color: #111;
}
.sc-bar { height: 10cqh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 2.4cqw; }
.sc-logo { font-size: 2cqw; font-weight: 500; letter-spacing: -0.02em; }
.sc-tabs { display: flex; gap: 0.3cqw; padding: 0.45cqw; border-radius: 99px; background: #ebebe9; }
.sc-tabs b { font-weight: 500; font-size: 1.3cqw; padding: 0.7cqw 1.6cqw; border-radius: 99px; color: #6e6e6e; }
.sc-tabs b.on { background: #fff; color: #111; box-shadow: 0 0.1cqw 0.4cqw rgba(0, 0, 0, 0.08); }
.sc-dots { justify-self: end; display: flex; gap: 0.8cqw; }
.sc-dots u { width: 2.8cqw; height: 2.8cqw; border-radius: 50%; background: #ebebe9; }

/* 1 · gallery: the newest saves drop in at the top of each column */
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3cqw; padding: 1cqw 2.4cqw; }
.g-col { display: flex; flex-direction: column; gap: 1.3cqw; }
.g-tile { height: calc(var(--h) * 13cqw); }
.g-tile.new { animation: g-drop 6.4s var(--ease) infinite both; }
.g-tile.n1 { animation-delay: 0.22s; } .g-tile.n2 { animation-delay: 0.44s; } .g-tile.n3 { animation-delay: 0.66s; }
@keyframes g-drop {
  0% { opacity: 0; transform: translateY(-4cqw) scale(0.86); }
  10%, 84% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: scale(0.96); }
}

/* 2 · collections: a save flies into a folder, its count ticks up, a tag appears */
.c-row { display: flex; justify-content: center; gap: 3cqw; margin-top: 5cqh; }
.f-card { position: relative; width: 20cqw; height: 22cqw; }
.f-back { position: absolute; inset: 14% 0 0; border-radius: 1.8cqw; background: #e7d5f2; }
.f-card:nth-child(1) .f-back { background: #f6d6c8; }
.f-card:nth-child(3) .f-back { background: #d3e8cf; }
.f-ph { position: absolute; width: 58%; height: 46%; top: 2%; border: 0.35cqw solid #fff; box-shadow: 0 0.3cqw 1cqw rgba(0, 0, 0, 0.1); }
.f-ph1 { left: 10%; rotate: -8deg; }
.f-ph2 { right: 10%; rotate: 7deg; top: 6%; }
.f-front {
  position: absolute; inset: 34% 0 0; border-radius: 1.8cqw;
  background: rgba(255, 255, 255, 0.55); -webkit-backdrop-filter: blur(1cqw); backdrop-filter: blur(1cqw);
  box-shadow: inset 0 0.1cqw 0 rgba(255, 255, 255, 0.9);
}
.f-name, .f-count { position: absolute; left: 0; right: 0; text-align: center; }
.f-name { bottom: 22%; font-size: 1.6cqw; font-weight: 500; }
.f-count { bottom: 10%; font-size: 1.2cqw; color: #6e6e6e; height: 1.6cqw; }
.f-count span { position: absolute; left: 0; right: 0; }
.c-target { animation: c-bump 5.6s var(--ease) infinite; }
.c-n1 { animation: c-old 5.6s step-end infinite; }
.c-n2 { animation: c-new 5.6s step-end infinite; }
@keyframes c-old { 0% { opacity: 1; } 42% { opacity: 0; } 96% { opacity: 1; } }
@keyframes c-new { 0% { opacity: 0; } 42% { opacity: 1; } 96% { opacity: 0; } }
@keyframes c-bump { 0%, 38% { transform: none; } 44% { transform: scale(1.06); } 52%, 100% { transform: none; } }
.c-fly {
  position: absolute; width: 11cqw; height: 13cqw; left: 6cqw; top: 46cqh;
  border: 0.35cqw solid #fff; box-shadow: 0 0.8cqw 2.4cqw rgba(0, 0, 0, 0.16);
  animation: c-fly 5.6s var(--ease) infinite both;
}
@keyframes c-fly {
  0% { opacity: 0; transform: translate(0, 2cqw) rotate(-6deg); }
  10% { opacity: 1; transform: translate(0, 0) rotate(-6deg); }
  38% { opacity: 1; transform: translate(31cqw, -22cqh) rotate(4deg) scale(0.55); }
  44%, 100% { opacity: 0; transform: translate(31cqw, -16cqh) scale(0.3); }
}
.c-tags { position: absolute; left: 0; right: 0; bottom: 8cqh; display: flex; justify-content: center; gap: 1cqw; }
.c-tags span { font-size: 1.3cqw; padding: 0.7cqw 1.4cqw; border-radius: 99px; background: #fff; color: #444; box-shadow: 0 0 0 0.08cqw rgba(0, 0, 0, 0.08); }
.c-tag-new { animation: c-tag 5.6s var(--spring) infinite both; }
@keyframes c-tag { 0%, 48% { opacity: 0; transform: scale(0.6); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3 · whiteboard: pictures and notes on a dotted canvas; one finds its place, a link draws in */
.b-canvas {
  position: absolute; inset: 10cqh 0 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.13) 0.12cqw, transparent 0.14cqw) 0 0 / 2.2cqw 2.2cqw;
}
.b-ph { position: absolute; border: 0.4cqw solid #fff; box-shadow: 0 0.6cqw 2cqw rgba(0, 0, 0, 0.12); }
.b1 { left: 8%; top: 12%; width: 22cqw; height: 26cqw; rotate: -3deg; }
.b2 { left: 34%; top: 42%; width: 18cqw; height: 15cqw; rotate: 2deg; }
.b3 { left: 66%; top: 10%; width: 20cqw; height: 24cqw; rotate: 4deg; }
.b-move { animation: b-move 6s var(--ease) infinite both; }
@keyframes b-move {
  0%, 8% { transform: translate(6cqw, 12cqh) rotate(9deg) scale(1.06); box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.2); }
  34%, 100% { transform: none; }
}
.b-note {
  position: absolute; width: 15cqw; height: 13cqw; padding: 1.4cqw; border-radius: 0.6cqw;
  font-size: 1.4cqw; line-height: 1.3; box-shadow: 0 0.5cqw 1.6cqw rgba(0, 0, 0, 0.1);
}
.n-y { left: 40%; top: 10%; background: #fbe9a6; rotate: 2deg; }
.n-p { left: 64%; top: 62%; background: #f7cfdc; rotate: -3deg; }
.b-link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.b-link path {
  fill: none; stroke: #8b8b8b; stroke-width: 0.35; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 100; animation: b-draw 6s var(--ease) infinite;
}
.b-link path { stroke-width: 2px; }
@keyframes b-draw { 0%, 36% { stroke-dashoffset: 100; } 60%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* 4 · rediscover: an old save comes back; it's kept, and the next one rises */
.r-win { width: 44cqw; height: 84cqh; display: flex; flex-direction: column; align-items: center; }
.r-when { margin-top: 4cqh; font-size: 1.4cqw; color: #6e6e6e; }
.r-stack { position: relative; width: 30cqw; height: 52cqh; margin-top: 3cqh; }
.r-card { position: absolute; inset: 0; border: 0.45cqw solid #fff; border-radius: 1.6cqw; box-shadow: 0 0.8cqw 2.4cqw rgba(0, 0, 0, 0.14); }
.r1 { animation: r-out 5.2s var(--ease) infinite both; z-index: 3; }
.r2 { animation: r-up2 5.2s var(--ease) infinite both; z-index: 2; }
.r3 { animation: r-up3 5.2s var(--ease) infinite both; z-index: 1; }
@keyframes r-out {
  0%, 40% { transform: none; opacity: 1; }
  62%, 100% { transform: translate(18cqw, -2cqh) rotate(10deg); opacity: 0; }
}
@keyframes r-up2 { 0%, 44% { transform: translateY(2.4cqh) scale(0.94); } 66%, 100% { transform: none; } }
@keyframes r-up3 { 0%, 44% { transform: translateY(4.8cqh) scale(0.88); opacity: 0.8; } 66%, 100% { transform: translateY(2.4cqh) scale(0.94); opacity: 1; } }
.r-btns { margin-top: 4cqh; display: flex; gap: 1.2cqw; }
.r-btns span { font-size: 1.4cqw; font-weight: 500; padding: 1cqw 2.4cqw; border-radius: 99px; }
.r-del { background: #fff; color: #444; box-shadow: 0 0 0 0.08cqw rgba(0, 0, 0, 0.12); }
.r-keep { background: #111; color: #fff; animation: r-press 5.2s var(--ease) infinite; }
@keyframes r-press { 0%, 30% { transform: none; } 36% { transform: scale(0.92); } 44%, 100% { transform: none; } }

@media (prefers-reduced-motion: reduce) { .sc * { animation: none !important; } }

/* a recorded card: the real app on video, filling the card */
.feat-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
