/* The one primary button of the funnel (landing, finder, checkout, thank-you page, login/registration), owner 12.11.2026:
   yellow pill with an arrow disc, a soft light passes over it now and then; on a successful press the arrow turns away and a
   circle with a check grows in. Markup: components/cta.blade.php; behaviour: landing-v3.js (loaded on every one of these
   pages). Self-contained: colours fall back to the landing tokens so app pages need no extra variables.
   Variants: .lp-cta-ghost (secondary package choice, same motion), .lp-cta-compact (next to inputs), .lp-cta-block (full width).
   .lp-secondary is the quiet secondary action with the same press feedback. Loaded by layouts/app.blade.php (hash) and by
   landing-v3.css (@import with ?v=N): when this file changes, raise that N. */
.lp-cta{--cta-bg:var(--act,#ffd43b);--cta-hover:var(--act-hover,#ffe270);--cta-ink:var(--act-ink,#0f1c3a);--cta-disc:var(--ink,#0f1c3a);--cta-glow:rgb(255 196 0 / .35);
  position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;min-width:min(360px,100%);padding-block:10px;padding-inline:32px 10px;border:2px solid var(--cta-bg);border-radius:999px;background:var(--cta-bg);color:var(--cta-ink);font:inherit;font-size:19px;font-weight:800;line-height:1.25;letter-spacing:-.01em;text-align:start;text-decoration:none;cursor:pointer;overflow:hidden;isolation:isolate;box-shadow:0 14px 34px var(--cta-glow),0 2px 0 rgb(15 28 58 / .08);transition:transform .18s,box-shadow .18s,background .18s,border-color .18s,opacity .18s}
.lp-cta-arrow{position:relative;display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:50%;background:var(--cta-disc);color:var(--cta-bg);transition:transform .18s}
.lp-cta-arrow svg{width:22px;height:22px;stroke-width:2.4}
[dir=rtl] .lp-cta-arrow>svg:first-child{transform:scaleX(-1)}
/* Hover only where a real pointer hovers: on touch screens a tapped button would otherwise stay pale and raised. */
@media (hover:hover) and (pointer:fine){
  .lp-cta:hover{background:var(--cta-hover);border-color:var(--cta-hover);transform:translateY(-2px);box-shadow:0 18px 40px rgb(255 196 0 / .45),0 2px 0 rgb(15 28 58 / .08)}
  .lp-cta:hover .lp-cta-arrow{transform:translateX(4px)}
  [dir=rtl] .lp-cta:hover .lp-cta-arrow{transform:translateX(-4px)}
  .lp-cta-ghost:hover{border-color:var(--ink,#0f1c3a);box-shadow:0 14px 30px rgb(15 28 58 / .12)}
  .lp-secondary:hover{border-color:var(--blue,#2055d6);color:var(--blue,#2055d6)}
}
.lp-cta:active{transform:translateY(1px) scale(.99)}
.lp-cta:focus-visible{outline:none;border-color:var(--cta-disc)}
.lp-cta:disabled,.lp-cta[aria-disabled=true]{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.lp-cta-check{position:absolute;top:50%;left:50%;width:78%;height:78%;transform:translate(-50%,-50%) scale(.55);fill:none;stroke:var(--cta-bg);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
/* Arrow → check (owner 12.11.2026) without an empty disc in any frame (owner 13.11.2026: "the check sometimes becomes empty
   blue"): the old stroke drawing (dash offset, main thread) froze while the next page loaded and left the disc empty.
   Now only opacity and transform change (compositor): the arrow turns away while the complete check grows in, both within
   0.2 s, so every frame shows the arrow, the check or both; reduced motion switches at once; a reset brings the arrow back. */
.lp-cta.is-done .lp-cta-arrow>svg:first-child{transform:rotate(-90deg) scale(.4);opacity:0;transition:transform .2s ease-in,opacity .16s ease-in}
.lp-cta.is-done .lp-cta-check{opacity:1;transform:translate(-50%,-50%) scale(1);transition:opacity .12s ease-out,transform .22s cubic-bezier(.2,.8,.2,1.2)}
.lp-cta.is-done .lp-cta-arrow{transform:scale(1.06);transition:transform .3s}
/* While a request runs (profile lookup): the arrow gives way to a turning ring. */
.lp-cta.is-busy{cursor:progress}
.lp-cta.is-busy .lp-cta-arrow>svg:first-child{opacity:0;transform:scale(.4);transition:transform .2s,opacity .2s}
.lp-cta.is-busy .lp-cta-arrow::after{content:"";position:absolute;inset:12px;border:3px solid var(--cta-bg);border-top-color:transparent;border-radius:50%}
.lp-cta.is-fail{animation:lp-cta-shake .4s}
@keyframes lp-cta-shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes lp-cta-spin{to{transform:rotate(360deg)}}
@keyframes lp-shine{0%,70%{transform:translateX(0) skewX(-18deg)}100%{transform:translateX(567%) skewX(-18deg)}}
.lp-cta-ghost{--cta-bg:#fff;--cta-hover:#fff;--cta-ink:var(--ink,#0f1c3a);--cta-glow:rgb(15 28 58 / .08);border-color:var(--line,#dfe6f1)}
.lp-cta-ghost .lp-cta-arrow{background:var(--ink,#0f1c3a);color:#fff}
.lp-cta-ghost .lp-cta-check{stroke:#fff}
.lp-cta-ghost:focus-visible{border-color:var(--blue,#2055d6)}
.lp-cta-compact{min-height:56px;min-width:0;gap:12px;padding-block:5px;padding-inline:22px 5px;font-size:17px}
.lp-cta-compact .lp-cta-arrow{width:42px;height:42px}
.lp-cta-block{display:flex;width:100%;min-width:0}
/* Narrow phones (320–374 px, scripts/mobile-sweep.mjs): a little less padding and type so short labels stay on one line. */
@media (max-width:374px){
  .lp-cta{gap:12px;padding-inline:22px 8px;font-size:16px}
  .lp-cta-arrow{width:42px;height:42px}
  .lp-cta-compact{gap:8px;padding-inline:16px 5px;font-size:15px}
  .lp-secondary{padding-inline:16px;font-size:15px}
}
/* Secondary actions: quiet outline pill, same press feedback, focus as a border colour change only. */
.lp-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 20px;border:2px solid var(--line,#dfe6f1);border-radius:999px;background:#fff;color:var(--ink,#0f1c3a);font:inherit;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer;transition:border-color .18s,color .18s,transform .12s}
.lp-secondary svg{width:18px;height:18px;flex-shrink:0}
.lp-secondary:focus-visible{outline:none;border-color:var(--blue,#2055d6);color:var(--blue,#2055d6)}
.lp-secondary:active{transform:scale(.97)}
/* Pages with the project-wide button feedback (app.css): the pill keeps its own look; only the shake is borrowed. */
.lp-cta.bf[data-feedback]{color:var(--cta-ink)!important;cursor:pointer}
.lp-cta.bf[data-feedback] .lp-cta-arrow>svg:first-child{opacity:1}
.lp-cta>.bf-indicator{display:none}
@media (prefers-reduced-motion:no-preference){
  .lp-cta::after{content:"";position:absolute;inset:0 auto 0 -40%;width:30%;z-index:-1;background:linear-gradient(100deg,transparent,rgb(255 255 255 / .55),transparent);transform:skewX(-18deg);animation:lp-shine 5s ease-in-out 1.5s infinite}
  .lp-cta.is-busy .lp-cta-arrow::after{animation:lp-cta-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){
  .lp-cta,.lp-cta-arrow,.lp-secondary{transition:none}
  .lp-cta:hover,.lp-cta:active,.lp-secondary:active{transform:none}
  .lp-cta:hover .lp-cta-arrow{transform:none}
  .lp-cta.is-fail{animation:none}
  .lp-cta-check,.lp-cta-arrow>svg:first-child{transition:none!important}
}
