/* Rylio buttons (Daniel, 18 Nov.), as in the app.
   Primary: the Rylio blue with the yellow label and a vector arrow; on hover the arrow moves
   forward and the blue deepens. Yellow #fffb56 on #4c6ac4 = 4.6:1, on #3351ab = 6.6:1.
   Outline: a light surface framed by the brand gradient (blue, vivid blue, pale pink); on
   hover the colours circulate around the frame. Nothing moves for reduced motion. */
:root{
  --rb-blue:#4c6ac4;--rb-blue-deep:#3351ab;--rb-blue-press:#193791;--rb-yellow:#fffb56;
  --rb-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
:root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn:not(.rb-btn-secondary)):not(.template-open){
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border:1px solid transparent;border-radius:10px;
  background:var(--rb-blue);background-image:none;
  color:var(--rb-yellow);
  padding-inline:22px;
  box-shadow:none;
  transition:background-color 200ms ease,box-shadow 200ms ease,transform 200ms ease;
}
/* The arrow, drawn in the label colour, only on text buttons. */
:root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn,.rylio-outline):not(.template-open):not(:has(svg,img))::after{
  content:"";flex:none;width:1.05em;height:1.05em;
  background:currentColor;
  -webkit-mask:var(--rb-arrow) center/contain no-repeat;mask:var(--rb-arrow) center/contain no-repeat;
  transition:transform 220ms cubic-bezier(.2,.8,.2,1);
}
@media(hover:hover) and (pointer:fine){
  :root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn:not(.rb-btn-secondary)):not(.template-open):not(:disabled):hover{
    background:var(--rb-blue-deep);color:var(--rb-yellow);border-color:transparent;
    box-shadow:0 6px 18px rgb(25 55 145 / 28%);transform:none;
  }
  :root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn,.rylio-outline):not(.template-open):not(:disabled):hover::after{transform:translateX(4px)}
}
:root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn:not(.rb-btn-secondary)):not(.template-open):active{background:var(--rb-blue-press);color:var(--rb-yellow);box-shadow:none}
:root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn):not(.template-open):focus-visible{outline:2px solid var(--rb-blue);outline-offset:3px}
:root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn:not(.rb-btn-secondary)):not(.template-open):disabled{background:var(--ui-line,#E6E6E9);color:var(--ui-muted,#66666B);box-shadow:none;opacity:1}
:root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn):disabled::after{display:none}
/* Blog articles force their action label colour with !important (editorial.css); keep the Rylio yellow. */
:root:root :is(#_,body) .blog-action:not(:disabled){color:var(--rb-yellow)!important}

/* Outline: a gradient frame that circulates on hover. */
:root:root :is(#_,body) :is(.rylio-outline,.rb-btn.rb-btn-secondary,.contact-button-secondary){
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  border:2px solid transparent;border-radius:10px;
  color:var(--ui-text,#171717);
  background:
    linear-gradient(var(--ui-surface,#fff),var(--ui-surface,#fff)) padding-box,
    linear-gradient(100deg,#c9d2f5 0%,#4648ff 35%,#fadcf5 65%,#c9d2f5 100%) border-box;
  background-size:100% 100%,300% 100%;
  background-position:0 0,0% 50%;
  transition:background-position 900ms cubic-bezier(.2,.8,.2,1),box-shadow 200ms ease;
}
@media(hover:hover) and (pointer:fine){
  :root:root :is(#_,body) :is(.rylio-outline,.rb-btn.rb-btn-secondary,.contact-button-secondary):hover{
    background-position:0 0,100% 50%;
    animation:rylio-frame 2.4s linear infinite;
    box-shadow:0 4px 14px rgb(70 72 255 / 14%);
  }
}
@keyframes rylio-frame{from{background-position:0 0,0% 50%}to{background-position:0 0,300% 50%}}

/* The nav action keeps its ring and the joint that ties it to the menu bar (Daniel, 18 Nov.);
   the button inside wears the new colours and follows the ring's round shape. */
:root:root :is(#_,body) .nav-cta :is(.btn.btn-primary,.mv-btn){border-radius:999px}

@media(prefers-reduced-motion:reduce){
  :root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn,.rylio-outline,.contact-button-secondary),
  :root:root :is(#_,body) :is(.mv-btn,.blog-action,.error-home,.btn.btn-primary,.quiz-action,.rb-btn,.rylio-outline)::after{transition:none;animation:none!important}
}
