/* Visual differentiation: warm title, blue-gray workflow, open archive, flower. */
body.v26-preview[data-page="chat"] .chat-intro::after {
  width:300px; height:190px; right:236px; bottom:-16px; top:auto;
  background:url('assets/vela-open-archive.svg') center/contain no-repeat;
  opacity:.95; animation:v26-archive-lift 6.8s ease-in-out infinite alternate;
}
@keyframes v26-archive-lift { from { transform:translateY(2px) rotate(-.6deg); } to { transform:translateY(-4px) rotate(.7deg); } }

/* Actual leaf silhouettes with veins; occupied text and composer stay above them. */
.v26-leaf-fall { position:absolute; inset:150px 4% 12px; z-index:0; overflow:hidden; pointer-events:none; --fall:340px; transition:opacity .35s ease; }
.v26-leaf-fall span { position:absolute; top:-26px; left:var(--x); display:block; width:19px; height:25px; color:#9FC9A0; opacity:0; animation:v26-leaf-drift var(--duration) linear var(--delay) infinite; will-change:transform,opacity; }
.v26-leaf-fall span:nth-child(2),.v26-leaf-fall span:nth-child(5) { color:#C9C68E; }
.v26-leaf-fall span:nth-child(3) { color:#A7C7BE; }
.v26-leaf-fall span svg { display:block; width:100%; height:100%; filter:drop-shadow(1px 2px 2px #5a785026); }
@keyframes v26-leaf-drift {
  0% { opacity:0; transform:translate3d(0,-15px,0) rotate(var(--turn)); }
  16% { opacity:.72; }
  65% { opacity:.61; }
  100% { opacity:0; transform:translate3d(var(--drift),var(--fall),0) rotate(225deg); }
}
.chat-log:has(.message-user) .v26-leaf-fall { opacity:0; }

/* An ink-like branch emerges and recedes with the reader's scroll. */
.v26-branch-scene { position:sticky; top:145px; width:min(78%,250px); height:375px; margin:42px auto 75px; pointer-events:none; }
.v26-branch-scene svg { display:block; width:100%; height:100%; overflow:visible; }
.v26-leaf-pair { fill:#B9DBAD; stroke:#6BA879; stroke-width:1.7; stroke-linejoin:round; transform-box:fill-box; transform-origin:center; }
.v26-leaf-pair:nth-of-type(even) { fill:#D8EABB; }

/* Keep green for the cards, not both the cards and their surroundings. */
body.v26-preview .v23-stack-frame { background:linear-gradient(135deg,#FCFAF5 4%,#F3F5F3 57%,#E9F0F3 100%); border-color:#D9E2E0; box-shadow:0 21px 48px #3C64721A; }
body.v26-preview .v23-stack-stage { background:#E7EDF0; box-shadow:inset 0 0 0 1px #D8E2E5; }
body.v26-preview .v23-stack-card { box-shadow:0 17px 32px #40586630; }
body.v26-preview .v23-stack-card-1 { border-top-color:#A6BFCB; }
body.v26-preview .v23-stack-card-2 { border-top-color:#8CB6C2; }
body.v26-preview .v23-stack-card-3 { border-top-color:#98B9B5; }

@media(max-width:720px) {
  /* A cover-like first section, followed by a separate interactive screen. */
  body.v26-preview.v20-home[data-page="home"] .hero { background:radial-gradient(circle at 85% 3%,#D9EFF0 0,transparent 35%),linear-gradient(165deg,#FBFAF3 0%,#F1F6F2 57%,#EBF3F7 100%)!important; border:0; box-shadow:none; }
  body.v26-preview.v20-home[data-page="home"] .hero::before,body.v26-preview.v20-home[data-page="home"] .hero::after { display:none; }
  body.v26-preview.v20-home[data-page="home"] .hero-copy { min-height:0; padding:25px 20px 13px; border:0; border-radius:0; background:transparent; box-shadow:none; }
  body.v26-preview.v20-home[data-page="home"] .v20-stage-wrap { margin-top:36px; }
  body.v26-preview.v20-home[data-page="home"] .hero-stage { box-shadow:0 15px 35px #426B741F; }
  body.v26-preview.v20-home[data-page="home"] .mobile-quick { position:relative; margin-top:25px; padding:4px 0 16px; }
  body.v26-preview.v20-home[data-page="home"] .mobile-quick a { box-shadow:0 5px 12px #4E6C7220; }
  body.v26-preview[data-page="chat"] .chat-intro::after { width:97px; height:68px; top:19px; right:3px; bottom:auto; opacity:.82; }
  .v26-leaf-fall { inset:144px 6px 8px 72%; --fall:105px; }
  .v26-leaf-fall span { width:12px; height:16px; }
  .v26-leaf-fall span:nth-child(n+3) { display:none; }
  .v26-branch-scene { display:none; }
}
@media(prefers-reduced-motion:reduce) {
  body.v26-preview[data-page="chat"] .chat-intro::after { animation:none!important; }
  .v26-leaf-fall { display:none!important; }
}
