/* Shiny pill + silk-thread wrapper (js/web-shot.js). Global: /audit hero and every footer CTA. */
/* ---------- Shiny pill (animated conic border, speckle, breathing glow) ---------- */
@property --sh-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --sh-offset { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --sh-pct { syntax: "<percentage>"; initial-value: 5%; inherits: false; }
@property --sh-shine { syntax: "<color>"; initial-value: white; inherits: false; }

.shiny {
  --sh-base: #0d0b0a; --sh-inset: #1a1818; --sh-accent: var(--accent); --sh-soft: var(--accent-soft);
  --animation: sh-angle linear infinite; --duration: 3s; --shadow-size: 2px; --transition: .8s cubic-bezier(.25, 1, .5, 1);
  isolation: isolate; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; outline-offset: 4px;
  padding: 1.4rem 3.4rem; font-size: 1.25rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  border: 1px solid transparent; border-radius: 999px;
  background:
    linear-gradient(var(--sh-base), var(--sh-base)) padding-box,
    conic-gradient(from calc(var(--sh-angle) - var(--sh-offset)), transparent, var(--sh-accent) var(--sh-pct), var(--sh-shine) calc(var(--sh-pct) * 2), var(--sh-accent) calc(var(--sh-pct) * 3), transparent calc(var(--sh-pct) * 4)) border-box;
  box-shadow: inset 0 0 0 1px var(--sh-inset);
  transition: var(--transition); transition-property: --sh-offset, --sh-pct, --sh-shine, translate;
}
.shiny--sm { padding: 1rem 2rem; font-size: 1.0625rem; }
.shiny::before, .shiny::after, .shiny span::before { content: ""; pointer-events: none; position: absolute; inset-inline-start: 50%; inset-block-start: 50%; translate: -50% -50%; z-index: -1; }
.shiny:active { translate: 0 1px; }
.shiny::before {
  --size: calc(100% - var(--shadow-size) * 3); --position: 2px; --space: calc(var(--position) * 2);
  width: var(--size); height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0) padding-box;
  background-size: var(--space) var(--space); background-repeat: space;
  mask-image: conic-gradient(from calc(var(--sh-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit; opacity: .4;
}
.shiny::after {
  --animation: sh-shimmer linear infinite; width: 100%; aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--sh-accent), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black); opacity: .6;
}
.shiny span { z-index: 1; }
.shiny span::before {
  --size: calc(100% + 1rem); width: var(--size); height: var(--size);
  box-shadow: inset 0 -1ex 2rem 4px var(--sh-accent); opacity: 0; transition: opacity var(--transition);
  animation: calc(var(--duration) * 1.5) sh-breathe linear infinite;
}
.shiny, .shiny::before, .shiny::after { animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / .4) reverse paused; animation-composition: add; }
.shiny:is(:hover, :focus-visible) { --sh-pct: 20%; --sh-offset: 95deg; --sh-shine: var(--sh-soft); }
.shiny:is(:hover, :focus-visible), .shiny:is(:hover, :focus-visible)::before, .shiny:is(:hover, :focus-visible)::after { animation-play-state: running; }
.shiny:is(:hover, :focus-visible) span::before { opacity: 1; }
@keyframes sh-angle { to { --sh-angle: 360deg; } }
@keyframes sh-shimmer { to { rotate: 360deg; } }
@keyframes sh-breathe { from, to { scale: 1; } 50% { scale: 1.2; } }
@media (prefers-reduced-motion: reduce) {
  .shiny, .shiny::before, .shiny::after, .shiny span::before { animation: none !important; }
  .shiny { transition: none; }
}

/* Silk-thread wrapper (js/web-shot.js) */
.web-shot { position: relative; isolation: isolate; display: inline-flex; color: #fff; }
.web-shot canvas { position: absolute; z-index: -1; pointer-events: none; }
.web-shot canvas[hidden] { display: none; }
@media (max-width: 559px) { .web-shot, .web-shot .shiny { width: 100%; } .shiny { padding-inline: 1.5rem; } }
