/* Smooth page changes: one page fades into the next, and a clicked tool tile
   flows into the heading of the page it opens. Loaded only on the public pages
   and the tool steps (pageTransitionsOn in app.ts), so a payment, account or
   self-refreshing page never moves. A browser without support just changes
   pages as it always did. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.18s; }
::view-transition-group(*) {
  animation-duration: 0.36s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* The theme button: the new look spreads from it with a soft edge, like light
   from a source. theme-init.js sizes and runs the circle. These rules hold only
   for that moment, so page changes keep their fade. */
:root.theme-spreading::view-transition-old(root),
:root.theme-spreading::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root.theme-spreading::view-transition-new(root) { mask: radial-gradient(closest-side, #000 78%, transparent) no-repeat; }
:root.theme-spreading * { view-transition-name: none !important; transition: none !important; }
.tf-tile[data-tool='base44'], .sw-page[data-tool='base44'] .sw-h1 { view-transition-name: tool-base44; }
.tf-tile[data-tool='lovable'], .sw-page[data-tool='lovable'] .sw-h1 { view-transition-name: tool-lovable; }
.tf-tile[data-tool='chatgpt'], .sw-page[data-tool='chatgpt'] .sw-h1 { view-transition-name: tool-chatgpt; }
.tf-tile[data-tool='claude'], .sw-page[data-tool='claude'] .sw-h1 { view-transition-name: tool-claude; }
.tf-tile[data-tool='v0'], .sw-page[data-tool='v0'] .sw-h1 { view-transition-name: tool-v0; }
.tf-tile[data-tool='other'], .sw-page[data-tool='other'] .sw-h1 { view-transition-name: tool-other; }
.tf-tile[data-tool='wordpress'], [data-tool-heading='wordpress'] { view-transition-name: tool-wordpress; }
