/* Hero devices drawn as cartoons (2026-10-17): a chunky ink-outlined monitor with the cast around it
   and a phone in a voice call. Everything inside is sized in container units, so the drawing scales
   as one piece from phones to wide screens. The monitor shows the real app; the cast is toons.css. */
.toon-showcase{--tn-ink:#221c1a;--tn-cream:#fffaee;--tn-screen:#262033;--tn-side:#2f2841;--tn-rail:#1d1828;--tn-text:#f5f3ed;--tn-muted:#b3a9c6;--tn-ember:#ff5722}
.toon-showcase figure{margin:0}
.toon-showcase .cute-face.blue{background:#4c8dff;color:#1d1a24;transform:rotate(6deg)}

/* ---------- the monitor ---------- */
.hero-showcase .toon-desktop{container-type:inline-size;position:relative;rotate:-1deg}
.tn-monitor{position:relative;padding:1.7cqw 1.7cqw 2.6cqw;border:.5cqw solid var(--tn-ink);border-radius:2.8cqw;background:var(--tn-cream);box-shadow:.9cqw 1.1cqw 0 var(--tn-ink)}
.tn-cam{position:absolute;left:50%;bottom:.75cqw;width:1.1cqw;height:1.1cqw;margin-left:-.55cqw;border-radius:50%;background:var(--tn-ember);box-shadow:0 0 0 .25cqw var(--tn-ink)}
.tn-screen{position:relative;aspect-ratio:16/10;overflow:hidden;border:.4cqw solid var(--tn-ink);border-radius:1.3cqw;background:var(--tn-screen)}
.tn-glare{position:absolute;top:1.4cqw;right:3.6cqw;width:.8cqw;height:4.8cqw;border-radius:1cqw;background:#ffffff2b;rotate:40deg;pointer-events:none}
.tn-glare::after{content:"";position:absolute;left:1.9cqw;top:1.1cqw;width:.8cqw;height:2.5cqw;border-radius:1cqw;background:#ffffff22}
.tn-stand{display:block;width:30cqw;height:auto;margin:-.2cqw auto 0;overflow:visible}

.tn-shot{display:block;width:100%;height:100%;object-fit:cover;object-position:left top}
/* The cast around the monitor (toons.css draws and moves them): Sam in front, Mika on top. */
.hero-cast{position:absolute;z-index:2;pointer-events:none}
.hero-cast svg{display:block;width:100%;height:auto;overflow:visible}
.hero-cast.c-front{left:-6cqw;bottom:-1cqw;width:17cqw}
.hero-cast.c-top{right:9cqw;top:-10.1cqw;width:14cqw}

/* ---------- the phone ---------- */
.hero-showcase .toon-phone{container-type:inline-size;padding:0;border:0;border-radius:0;background:none;box-shadow:none;min-width:0}
.tn-phone{position:relative;padding:4cqw;border:1.9cqw solid var(--tn-ink);border-radius:17cqw;background:var(--tn-cream);box-shadow:3.4cqw 4cqw 0 var(--tn-ink)}
.tn-phone::before,.tn-phone::after{content:"";position:absolute;width:3cqw;border:1.3cqw solid var(--tn-ink);border-radius:2cqw;background:var(--tn-cream)}
.tn-phone::before{right:-4.6cqw;top:22%;height:13%;border-left:0}
.tn-phone::after{left:-4.6cqw;top:17%;height:8%;border-right:0}
.tn-pscreen{position:relative;display:flex;flex-direction:column;aspect-ratio:390/800;overflow:hidden;border:1.5cqw solid var(--tn-ink);border-radius:12cqw;background:var(--tn-screen);color:var(--tn-text)}
.tn-notch{width:32%;height:6.5cqw;margin:3.5cqw auto 0;border-radius:4cqw;background:var(--tn-ink)}
.tn-call-head{padding:5cqw 7cqw 0}
.tn-call-head b{display:block;font-size:7.4cqw;font-weight:800;letter-spacing:-.01em}
.tn-call-head span{display:flex;align-items:center;gap:2cqw;margin-top:1.2cqw;font-size:4.4cqw;color:var(--tn-muted)}
.tn-call-head span::before{content:"";width:2.6cqw;height:2.6cqw;border-radius:50%;background:#3ddc84;box-shadow:0 0 0 .9cqw #3ddc8433}
.tn-tiles{display:grid;grid-template-columns:1fr 1fr;gap:4cqw;padding:6cqw 6cqw 0}
.tn-tile{position:relative;display:grid;place-items:center;aspect-ratio:1/1.12;border:1.3cqw solid var(--tn-ink);border-radius:7cqw;box-shadow:1.6cqw 1.9cqw 0 #120e18}
.tn-tile.t1{background:#ffd8c2}.tn-tile.t2{background:#e4d8f8}.tn-tile.t3{background:#fff1a8}.tn-tile.t4{background:#cdeadc}
.tn-tile .cute-face{width:21cqw;height:21cqw;box-shadow:0 0 0 1.3cqw var(--tn-ink)}
.tn-tile .cute-face b{border-width:0 1.5cqw 1.5cqw}
.tn-tile em{position:absolute;left:2.6cqw;bottom:2.6cqw;padding:.7cqw 2.4cqw;border-radius:3cqw;background:var(--tn-ink);color:var(--tn-cream);font-size:3.9cqw;font-style:normal;font-weight:700}
.tn-tile.t3 em::after{content:"";display:inline-block;width:2.6cqw;height:2.6cqw;margin-left:1.3cqw;vertical-align:-.3cqw;background:#ff6b6b;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4a3 3 0 0 1 6 0v6a3 3 0 0 1-6 0zM5 11a7 7 0 0 0 14 0M12 18v3M4 4l16 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4a3 3 0 0 1 6 0v6a3 3 0 0 1-6 0zM5 11a7 7 0 0 0 14 0M12 18v3M4 4l16 16' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
/* Speaking: a green ring around the tile (green means live in Joying). */
.tn-tile::after{content:"";position:absolute;inset:-3.2cqw;border:1.6cqw solid #3ddc84;border-radius:9.5cqw;opacity:0}
.tn-tile.t1::after{opacity:1}
.tn-game{display:flex;align-items:center;gap:3cqw;margin:7cqw 6cqw 0;padding:2.6cqw 3.4cqw 2.6cqw 2.6cqw;border:1.1cqw solid var(--tn-ink);border-radius:5cqw;background:#3a3150;box-shadow:1.4cqw 1.7cqw 0 #120e18}
.tn-game i{display:grid;place-items:center;flex:none;width:11cqw;height:11cqw;border-radius:3.4cqw;background:#ffeb3b;box-shadow:0 0 0 1cqw var(--tn-ink)}
.tn-game svg{width:7.4cqw;height:7.4cqw;fill:none;stroke:var(--tn-ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tn-game span{display:flex;flex-direction:column;gap:.6cqw;font-size:3.7cqw;color:var(--tn-muted);line-height:1.15}
.tn-game b{font-size:4.6cqw;color:var(--tn-text);font-weight:800}
.tn-controls{display:flex;justify-content:center;gap:3.6cqw;margin-top:auto;padding:0 5cqw 8cqw}
.tn-btn{display:grid;place-items:center;width:15cqw;height:15cqw;border-radius:50%;background:#3a3150;box-shadow:0 0 0 1.1cqw var(--tn-ink)}
.tn-btn svg{width:7.6cqw;height:7.6cqw;fill:none;stroke:var(--tn-text);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.tn-btn.leave{width:22cqw;border-radius:8cqw;background:#e5484d}
.tn-btn.leave svg{stroke:#fff}
.tn-home{position:absolute;left:36%;right:36%;bottom:2.6cqw;height:1.3cqw;border-radius:1cqw;background:#ffffff66}

/* ---------- doodles around them ---------- */
/* The tilt rides in transform with the twinkle (not the separate rotate/scale properties, which Chrome
   can't run on an <svg> off the main thread). */
.tn-doodle{position:absolute;pointer-events:none;transform:rotate(var(--tilt,0deg));fill:#ffeb3b;stroke:var(--tn-ink);stroke-width:1.6;stroke-linejoin:round}
.tn-doodle.d1{left:-2.2%;top:-5%;width:4.4%;--tilt:-12deg}
.tn-doodle.d2{left:-13cqw;top:-7cqw;width:13cqw;fill:#ff5722;--tilt:14deg}
.tn-doodle.d3{left:-3.4%;top:46%;width:2.4%;fill:#673ab7;--tilt:8deg}

/* ---------- the little scene ---------- */
@media(prefers-reduced-motion:no-preference){
  .tn-tile::after{animation:tn-speak 9s infinite}
  .tn-tile.t1::after{animation-delay:0s}.tn-tile.t2::after{animation-delay:-6s}.tn-tile.t4::after{animation-delay:-3s}.tn-tile.t3::after{animation:none;opacity:0}
  .tn-doodle{animation:tn-twinkle 3.6s ease-in-out infinite}
  .tn-doodle.d2{animation-delay:-1.2s}.tn-doodle.d3{animation-delay:-2.4s}
}
@keyframes tn-speak{0%,2%{opacity:0;scale:.96}5%,30%{opacity:1;scale:1}33%,100%{opacity:0;scale:1}}
@keyframes tn-twinkle{0%,100%{transform:rotate(var(--tilt,0deg)) scale(1)}50%{transform:rotate(var(--tilt,0deg)) scale(.78)}}
