/* "Vanya at work" window: six phones, each one moment Vanya handles. Rendered by tiles.js.
   Shared by the landing page and the launch posts (X post, poster). The host page defines the
   brand variables (--blue, --blue-deep, --cream, --pink, --ink, --muted, --line, --shadow).
   Every animation repeats evenly within 6 s, so exported videos loop seamlessly. */

.window { margin: 64px auto 0; max-width: 1120px; background: #fbfbf8; border-radius: 16px; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; text-align: left; }
.chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.chrome i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.chrome span { margin-left: 10px; font-size: 13px; color: var(--muted); }
.groups { padding: 22px 26px 2px; }
.group-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; margin: 6px 0 12px; }
.group-head img { width: 26px; background: var(--cream); border-radius: 7px; padding: 2px; }
.group-head small { color: var(--muted); font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 26px; }
/* One row of six: both groups side by side (used by the X post). */
.window.one-row .groups { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.window.one-row .tiles { gap: 14px; margin-bottom: 22px; }
.tile-title { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; display: flex; gap: 6px; align-items: center; }
.tile-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* Every tile frames its phone the same way: upright, centred, same size, cropped at the bottom. */
.tile { position: relative; height: var(--tile-h, 290px); border-radius: 12px; overflow: hidden; display: flex; justify-content: center; padding-top: 62px; box-shadow: inset 0 0 0 1px rgba(35, 38, 43, .05); }
.t-blue { background: linear-gradient(150deg, #dceaf4, #eef4f8); }
.t-lav { background: linear-gradient(150deg, #e7e2f7, #f3f0fb); }
.t-cream { background: linear-gradient(150deg, #fbf6d4, #fdfbe9); }
.t-night { background: linear-gradient(150deg, #c9d4e6, #e3e8f1); }
.t-pink { background: linear-gradient(150deg, #fbe0e3, #fdf0f1); }
.t-mint { background: linear-gradient(150deg, #dcefe4, #eef7f1); }

.mp { flex: none; width: 140px; height: 284px; border-radius: 25px; background: #1d2126; padding: 5px; box-shadow: 0 16px 30px rgba(35, 38, 43, .2); }
.scr { position: relative; height: 100%; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 22px 9px 9px; font-size: 8.5px; line-height: 1.35; background: var(--blue); }
.scr::before { content: ""; position: absolute; top: 5px; left: 50%; translate: -50% 0; width: 38px; height: 10px; border-radius: 8px; background: #1d2126; }
.s-blue { background: var(--blue); }

.bunny { position: relative; width: 62px; flex: none; animation: bounce 1.5s ease-in-out infinite; }
.bunny img { display: block; width: 100%; }
.bunny .smile { position: absolute; inset: 0; }
.mouth { position: absolute; left: 49.07%; top: 79%; width: 13%; height: 0; translate: -50% 0; background: var(--pink); border-radius: 0 0 99px 99px; }
.talking .mouth { animation: talk .5s steps(2) infinite; }
@keyframes talk { 0% { height: 2%; } 50% { height: 8%; } }
@keyframes bounce { 50% { transform: translateY(-4px); } }

.b { max-width: 92%; padding: 5px 8px; border-radius: 10px; margin-top: 7px; }
.b.her { background: var(--pink); color: #fff; align-self: flex-start; border-bottom-left-radius: 3px; }
.b.me { background: #fbf8ef; color: var(--ink); align-self: flex-end; border-bottom-right-radius: 3px; }
.b.late { animation: appear 6s infinite; }
@keyframes appear { 0%, 30% { opacity: 0; transform: translateY(4px); } 40%, 100% { opacity: 1; transform: none; } }
.mini-btn { margin-top: 8px; width: 100%; background: var(--cream); color: var(--ink); border-radius: 99px; text-align: center; padding: 5px; font-weight: 600; }
.mini-btn.dark { background: var(--ink); color: #fff; }
.row { width: 100%; background: #fff; color: var(--ink); border-radius: 8px; padding: 6px; margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.row small { display: block; color: var(--muted); font-size: 7.5px; }
.ck { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--blue); flex: none; }
.ck.tick { animation: tick 6s infinite; }
@keyframes tick { 0%, 45% { background: transparent; } 55%, 100% { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat; } }
.keybox { display: flex; gap: 6px; margin-top: 9px; }
.keybox i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; animation: fill 6s infinite; }
.keybox i:nth-child(2) { animation-delay: .4s; } .keybox i:nth-child(3) { animation-delay: .8s; } .keybox i:nth-child(4) { animation-delay: 1.2s; }
@keyframes fill { 0%, 30% { background: transparent; } 40%, 100% { background: #fff; } }
.memchip { background: #fff; color: var(--ink); border-radius: 8px; padding: 5px 7px; margin-top: 7px; width: 100%; }

/* The floating "what she's doing" labels, like cursors. Same spot on every tile. */
.doing { position: absolute; left: 16px; top: 18px; display: flex; align-items: flex-start; gap: 2px; z-index: 3; animation: drift 6s ease-in-out infinite; pointer-events: none; }
.doing svg { width: 15px; height: 15px; flex: none; }
.doing span { margin-top: 10px; background: var(--blue-deep); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 6px; white-space: nowrap; box-shadow: 0 4px 10px rgba(79, 134, 173, .35); }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(10px, 6px); } 66% { transform: translate(-6px, 10px); } }

@media (max-width: 900px) {
  .window:not(.one-row) .tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .window:not(.one-row) .tiles > div { scroll-snap-align: start; }
  .window:not(.one-row) .groups { padding: 18px 16px 2px; }
}
