/* Buttons as one lit family, loaded last on every page (home: .btn-primary / .btn-ghost; inner pages: .btn--primary /
   .btn--secondary). Primary: a lit Signal glass capsule with a bright top edge, a darker bottom edge, a fine hairline
   and the kit's warm glow; on hover or focus one specular sweep crosses it once. Ink on orange stays (kit rule). On
   the orange panel and the amber band the primary is dark glass with the same edge light. Secondary: quiet frosted
   glass with a top highlight. Motion only on user action; reduced motion keeps the colour and glow change only. */

:is(.btn-primary, .btn--primary) {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .24), rgb(255 255 255 / .06) 48%, rgb(255 255 255 / 0) 52%),
    linear-gradient(180deg, #FF6E35, var(--signal, #FF5A1F) 60%, #EE4C12);
  color: var(--ink, #1C1613); font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgb(255 240 222 / .8),
    inset 0 -1px 0 rgb(255 196 150 / .35),
    inset 0 -6px 10px -4px rgb(110 28 0 / .35),
    0 0 0 1px rgb(120 32 0 / .35),
    0 6px 16px rgb(255 90 31 / .28),
    0 0 26px rgb(255 164 41 / .14);
}
:is(.btn-primary, .btn--primary)::before {
  content: ""; position: absolute; top: -2px; bottom: -2px; left: 0; z-index: -1; width: 55%; pointer-events: none;
  background: linear-gradient(100deg, rgb(255 255 255 / 0) 15%, rgb(255 250 240 / .6) 50%, rgb(255 255 255 / 0) 85%);
  transform: translateX(-130%) skewX(-18deg); opacity: 0;
}
:is(.btn-primary, .btn--primary):is(:hover, :focus-visible) {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .3), rgb(255 255 255 / .08) 48%, rgb(255 255 255 / 0) 52%),
    linear-gradient(180deg, #FF8452, var(--signal-hover, #FF7A47) 60%, #F45A1E);
  box-shadow:
    inset 0 1px 0 rgb(255 248 236 / .95),
    inset 0 -1px 0 rgb(255 214 170 / .5),
    inset 0 -6px 10px -4px rgb(110 28 0 / .3),
    0 0 0 1px rgb(120 32 0 / .3),
    var(--flame-glow-btn, 0 10px 30px rgba(255,90,31,.45), 0 0 60px rgba(255,164,41,.30), 0 0 18px rgba(255,212,57,.25));
}
:is(.btn-primary, .btn--primary):is(:hover, :focus-visible)::before { animation: btn-sheen .6s var(--ease, ease) 1 both; }
@keyframes btn-sheen {
  from { transform: translateX(-130%) skewX(-18deg); opacity: 1; }
  to { transform: translateX(290%) skewX(-18deg); opacity: 1; }
}
@media (hover: hover) { :is(.btn-primary, .btn--primary):hover { transform: translateY(-2px); } }
:is(.btn-primary, .btn--primary):active { transform: scale(.96); transition-duration: 90ms; }
:is(.btn-primary, .btn--primary):focus-visible { outline: 2px solid var(--paper, #F3EDE4); outline-offset: 3px; }

/* the arrow chip is part of the same lit object: its own top light and a soft drop into the capsule */
:is(.btn-primary, .btn--primary)::after { box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 3px rgb(60 14 0 / .35); }

/* dark glass primary: the orange Book a call panel and the amber band */
:is(.g-orange, #process) :is(.btn-primary, .btn--primary) {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .1), rgb(255 255 255 / .02) 48%, rgb(255 255 255 / 0) 52%),
    linear-gradient(180deg, #2E241F, var(--ink, #1C1613) 60%, #120E0C);
  color: var(--paper, #F3EDE4);
  box-shadow:
    inset 0 1px 0 rgb(255 236 214 / .26),
    inset 0 -1px 0 rgb(255 255 255 / .06),
    inset 0 -6px 10px -4px rgb(0 0 0 / .5),
    0 0 0 1px rgb(40 10 0 / .55),
    0 8px 20px rgb(90 25 0 / .3);
}
:is(.g-orange, #process) :is(.btn-primary, .btn--primary):is(:hover, :focus-visible) {
  background:
    linear-gradient(180deg, rgb(255 255 255 / .14), rgb(255 255 255 / .03) 48%, rgb(255 255 255 / 0) 52%),
    linear-gradient(180deg, #3A2E27, #241C18 60%, #16110E);
  box-shadow:
    inset 0 1px 0 rgb(255 240 222 / .4),
    inset 0 -1px 0 rgb(255 255 255 / .08),
    inset 0 -6px 10px -4px rgb(0 0 0 / .45),
    0 0 0 1px rgb(40 10 0 / .5),
    0 12px 26px rgb(90 25 0 / .38);
}
:is(.g-orange, #process) :is(.btn-primary, .btn--primary)::before { background: linear-gradient(100deg, rgb(255 255 255 / 0) 15%, rgb(255 240 222 / .22) 50%, rgb(255 255 255 / 0) 85%); }
:is(.g-orange, #process) :is(.btn-primary, .btn--primary):focus-visible { outline-color: var(--ink, #1C1613); }

/* secondary: quiet frosted glass with a top highlight and a hairline, on dark grounds */
:is(.g-ink, .site-head) .btn-ghost, :is(.g-ink, .nav) .btn--secondary {
  background: linear-gradient(180deg, rgb(243 237 228 / .13), rgb(243 237 228 / .05));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), inset 0 0 0 1px rgb(243 237 228 / .17), 0 2px 8px rgb(0 0 0 / .18);
  color: var(--paper, #F3EDE4);
}
:is(.g-ink, .site-head) .btn-ghost:is(:hover, :focus-visible), :is(.g-ink, .nav) .btn--secondary:is(:hover, :focus-visible) {
  background: linear-gradient(180deg, rgb(243 237 228 / .2), rgb(243 237 228 / .09));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .26), inset 0 0 0 1px rgb(243 237 228 / .3), 0 4px 14px rgb(0 0 0 / .24);
}
.g-ink .btn-ghost[aria-pressed="true"] { background: var(--paper, #F3EDE4); color: var(--ink, #1C1613); }
/* on light grounds (light panels, the amber band): white frost, Ink text, a 3:1 edge */
.vx-light .btn-ghost, #process .btn-ghost {
  background: linear-gradient(180deg, rgb(255 255 255 / .78), rgb(255 255 255 / .5));
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgb(28 17 12 / .45), 0 1px 3px rgb(28 17 12 / .1);
}

@media (prefers-reduced-motion: reduce) {
  :is(.btn-primary, .btn--primary):is(:hover, :focus-visible)::before { animation: none; }
  :is(.btn-primary, .btn--primary):hover, :is(.btn-primary, .btn--primary):active { transform: none; }
}
