/* Quillbench interaction layer (preview): hover, press, focus and a soft reveal. Opacity and transform only, so nothing shifts.
   Motion rules sit inside prefers-reduced-motion:no-preference. Hover rules sit inside (hover:hover) so touch screens never get stuck states. */
:root{--qbfx-ease:cubic-bezier(.2,.7,.2,1)}

/* keyboard focus: one consistent ring (zero specificity, so a page's own focus style still wins) */
:where(a,button,summary,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #9B3B3B;outline-offset:2px}

@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  .btn{transition:transform .25s var(--qbfx-ease),box-shadow .25s var(--qbfx-ease),background-color .2s,color .2s}
  .btn:active{transform:translateY(0) scale(.985)}
  :where(p,li,td,dd,summary) a:not(.btn){transition:text-decoration-color .2s,color .2s}
  figure>img,figure>a>img{transition:transform .35s var(--qbfx-ease),box-shadow .35s var(--qbfx-ease)}
  tbody tr{transition:background-color .2s}
  details[open]>summary~*{animation:qbfx-open .35s var(--qbfx-ease) both}
  @keyframes qbfx-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
  /* soft reveal for blocks below the first screen. The class is added by qb-fx.js only, so no script means everything shows. */
  .qbfx-r{opacity:0;transform:translateY(14px);transition:opacity .6s var(--qbfx-ease),transform .7s var(--qbfx-ease);transition-delay:var(--d,0ms)}
  .qbfx-r.in{opacity:1;transform:none}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .btn:not(:disabled):not([aria-disabled=true]):hover{transform:translateY(-2px);box-shadow:0 10px 22px -10px rgba(155,59,59,.7)}
  .box,.qb-price-card{transition:transform .35s var(--qbfx-ease),box-shadow .35s var(--qbfx-ease),opacity .6s var(--qbfx-ease)}
  .box:hover,.qb-price-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px -18px rgba(28,25,23,.35)}
  figure:hover>img,figure:hover>a>img{transform:translateY(-3px);box-shadow:0 14px 26px -14px rgba(28,25,23,.5)}
  .qb-site-nav .qb-links a{position:relative}
  .qb-site-nav .qb-links a::after{content:"";position:absolute;left:.2rem;right:.2rem;bottom:.4rem;height:2px;background:#9B3B3B;transform:scaleX(0);transform-origin:0 50%;transition:transform .3s var(--qbfx-ease);pointer-events:none}
  .qb-site-nav .qb-links a:hover::after,.qb-site-nav .qb-links a:focus-visible::after{transform:scaleX(1)}
  :where(p,li,td,dd,summary) a:not(.btn):hover{text-decoration-thickness:2px}
  tbody tr:hover{background-color:rgba(155,59,59,.05)}
}
@media (hover:hover){summary{cursor:pointer}summary:hover{color:#9B3B3B}}
@media print{.qbfx-r{opacity:1!important;transform:none!important}}
