/* xfix.ai components. One face for every language: IBM Plex Sans Arabic. */
.xf-mark { display: block; flex: none; }

.xf-lockup { display: inline-flex; align-items: center; color: var(--ink); }
.xf-wordmark { font-family: var(--font-sans); letter-spacing: -.03em; line-height: 1; white-space: nowrap; color: inherit; }
.xf-w-bold { font-weight: 700; }
.xf-w-light { font-weight: 300; }

.xf-btn {
  font-family: var(--font-sans); font-size: 15px; font-weight: 700; line-height: 1;
  height: 46px; padding: 0 20px; border: none; border-radius: var(--radius-pill); cursor: pointer;
  transition: transform 280ms cubic-bezier(.2, 1.4, .4, 1), background-color 200ms cubic-bezier(.7, 0, .9, .3);
}
.xf-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.xf-btn-primary { background: var(--xf-tool, var(--tool)); color: var(--xf-on-tool, var(--on-tool)); }
.xf-btn-primary:hover { transform: scale(1.04); }
.xf-btn-dark { background: var(--ink); color: var(--card); }
.xf-btn-dark:hover { background: var(--ink-hover); }
.xf-btn-secondary { background: var(--chip); color: var(--ink); }
.xf-btn-secondary:hover { background: var(--chip-hover); }
.xf-btn-sm { height: 44px; }

.xf-url { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px; background: var(--paper); border-radius: var(--radius-pill); }
.xf-url-input {
  font-family: var(--font-sans); font-size: 15px; flex: 1; min-width: 180px; height: 44px; padding: 0 16px;
  border: none; background: transparent; color: var(--ink); outline: none; border-radius: var(--radius-pill);
}
.xf-url-input::placeholder { color: var(--ink-2); }
.xf-url:focus-within { box-shadow: 0 0 0 3px var(--ink); }

.xf-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink); background: var(--chip); }
.xf-tag-critical { background: var(--critical-soft); color: var(--critical-text); }
.xf-tag-partial { background: var(--partial-soft); color: var(--partial-text); }
.xf-tag-passed { background: var(--pass-soft); color: var(--pass); }
.xf-tag-search { background: var(--search-tint); }
.xf-tag-shop { background: var(--shop-tint); }
.xf-tag-gov { background: var(--gov-tint); }
.xf-tag-publish { background: var(--publish-tint); }

.xf-meter { display: flex; align-items: flex-end; gap: 3px; height: 12px; }
.xf-meter-seg { flex: 1; border-radius: 3px; }

.xf-score { background: var(--ink); color: var(--card); border-radius: var(--radius-22); padding: 28px; display: flex; flex-direction: column; gap: 18px; font-family: var(--font-sans); }
.xf-score-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.xf-score-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.xf-score-title .xf-wordmark { color: var(--card); }
.xf-score-meta { font-size: 12px; color: var(--on-dark-muted); }
.xf-score-num { display: flex; align-items: baseline; gap: 8px; }
.xf-score-big { font-size: 96px; font-weight: 300; letter-spacing: -.05em; line-height: .85; }
.xf-score-of { font-size: 20px; color: var(--on-dark-muted); }

.xf-finding { background: var(--card); border-radius: var(--radius-22); padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; font-family: var(--font-sans); color: var(--ink); }
.xf-finding-dot { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--fail); color: var(--card); }
.xf-finding-fixed { align-items: center; padding: 18px 22px; }
.xf-finding-fixed .xf-finding-dot { background: var(--xf-tool, var(--tool)); color: var(--xf-on-tool, var(--on-tool)); }
.xf-finding-text { display: flex; flex-direction: column; gap: 4px; }
.xf-finding-text b { font-size: 16px; }
.xf-finding-fixed .xf-finding-text b { font-size: 15px; }
.xf-finding-text span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.xf-loader { display: inline-grid; transform: rotate(45deg); }
.xf-loader-dot { border-radius: 50%; animation: xf-pulse 1200ms linear infinite both; }
@keyframes xf-pulse { 0%, 50%, 100% { transform: scale(1); } 20% { transform: scale(.35); } }


[dir="rtl"] .xf-btn, [dir="rtl"] .xf-tag, [dir="rtl"] .xf-finding-text b { letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) {
  .xf-btn { transition: none; }
  .xf-btn-primary:hover { transform: none; }
  .xf-loader-dot { animation-duration: 2400ms; }
}

/* ---- Product layer (from the xfix shop redesign files) ---- */
.xf-ui-icon { display: inline-block; flex: none; vertical-align: middle; }
.xf-illus svg { display: block; width: 100%; height: auto; }
.xf-float { animation: xf-float 6s ease-in-out infinite; }

.xf-cover { position: relative; aspect-ratio: 16 / 10; background: transparent; box-shadow: inset 0 0 0 2px var(--ink); border-radius: var(--radius-22); overflow: hidden; font-family: var(--font-sans); color: var(--ink); container-type: inline-size; }
.xf-cover-top { position: absolute; left: 6cqw; top: 6cqw; }
.xf-cover-line { position: absolute; left: 6cqw; top: 17cqw; max-width: 52%; font-size: 6cqw; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.xf-cover-art { position: absolute; right: 2cqw; bottom: 0; width: 62%; }

/* Explainer stage: 124px paper panel, card stations, one moving thing. */
.xf-explain { position: relative; display: block; height: 124px; border-radius: var(--radius-14); background: var(--paper); overflow: hidden; font-family: var(--font-sans); color: var(--ink); }
.xf-track { position: absolute; top: 96px; height: 3px; border-radius: var(--radius-pill); background: var(--hairline); }
.xf-station { position: absolute; top: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.xf-station-box { width: 36px; height: 36px; border-radius: var(--radius-10); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.xf-station-label { font-size: 9px; font-weight: 700; letter-spacing: .13em; color: var(--ink-2); }
.xf-walker { position: absolute; top: 91px; left: 6%; width: 14px; height: 14px; margin-left: -7px; border-radius: var(--radius-pill); background: var(--xf-tool, var(--ink)); box-shadow: 0 0 0 4px var(--xf-tool-tint, var(--chip)), 0 0 0 5.5px var(--ink); }
.xf-walker-ink { background: var(--ink); box-shadow: 0 0 0 4px var(--hairline); }
.xf-tick { position: absolute; top: 16px; margin-left: 8px; width: 18px; height: 18px; border-radius: var(--radius-pill); background: var(--pass); color: var(--card); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.xf-wall { position: absolute; top: 18px; width: 16px; height: 82px; margin-left: 8px; border-radius: 6px; background: var(--ink); transform-origin: center bottom; }
.xf-lock { position: absolute; top: 6px; margin-left: -16px; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); background: var(--fail); color: var(--card); font-size: 9px; font-weight: 700; letter-spacing: .1em; display: inline-flex; align-items: center; white-space: nowrap; }
.xf-ship-row { position: absolute; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.xf-ship-num { font-weight: 300; font-size: 22px; }
.xf-ship-bar { position: absolute; left: 20px; right: 20px; top: 52px; height: 16px; display: flex; gap: 3px; }
.xf-ship-bar > span { border-radius: var(--radius-pill); transform-origin: left center; }
.xf-scanpage { display: grid; place-items: center; }
.xf-page { position: relative; width: 150px; height: 104px; background: var(--card); border-radius: var(--radius-10); padding: 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.xf-page-img { height: 40px; border-radius: 6px; background: var(--chip); }
.xf-page-line { height: 6px; border-radius: var(--radius-pill); background: var(--hairline); }
.xf-page-btn { height: 12px; width: 50%; border-radius: var(--radius-pill); background: var(--xf-tool, var(--ink)); margin-top: auto; }
.xf-scanline { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); box-shadow: 0 0 0 3px rgba(23, 21, 9, .08); }
.xf-pin { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: var(--radius-pill); background: var(--fail); border: 2px solid var(--card); animation: xf-pin 1.6s ease infinite; }

/* Motion from the product files: explainer ease cubic-bezier(.2,.7,.2,1). */
.xf-anim-agent { animation: xf-agent 5s cubic-bezier(.2, .7, .2, 1) infinite; }
.xf-anim-tick { animation: xf-agent-tick 5s cubic-bezier(.2, .7, .2, 1) infinite; }
.xf-anim-gc { animation: xf-gc-dot 5s cubic-bezier(.2, .7, .2, 1) infinite; }
.xf-anim-wall { animation: xf-gc-wall 5s cubic-bezier(.2, .7, .2, 1) infinite; }
.xf-anim-lock { animation: xf-gc-lock 5s linear infinite; }
.xf-anim-ship { animation: xf-ship-pop 4.5s cubic-bezier(.2, .7, .2, 1) infinite; }
.xf-anim-shiptxt { animation: xf-ship-txt 4.5s cubic-bezier(.2, .7, .2, 1) infinite; }
.xf-anim-scan { animation: xf-scanline 3.2s ease-in-out infinite; }
.xf-rise { animation: xf-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.xf-grow-x { transform-origin: left center; animation: xf-grow-x .9s cubic-bezier(.2, .7, .2, 1) both; }
.xf-pop { animation: xf-pop .4s cubic-bezier(.2, .7, .2, 1) both; }

@keyframes xf-agent { 0%, 30% { left: 6%; } 45%, 60% { left: 46%; } 80%, 100% { left: 86%; } }
@keyframes xf-agent-tick { 0%, 78% { opacity: 0; transform: scale(.6); } 84%, 100% { opacity: 1; transform: scale(1); } }
@keyframes xf-gc-dot { 0% { left: 6%; } 30%, 55% { left: 36%; } 85%, 100% { left: 86%; } }
@keyframes xf-gc-wall { 0%, 32% { transform: scaleY(1); } 50%, 100% { transform: scaleY(0); } }
@keyframes xf-gc-lock { 0%, 30% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes xf-ship-pop { 0%, 40% { transform: scaleX(0); } 55%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes xf-ship-txt { 0%, 45% { opacity: 0; transform: translateY(6px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes xf-scanline { 0% { top: 8%; } 50% { top: 88%; } 100% { top: 8%; } }
@keyframes xf-pin { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 58, 38, .45); } 70% { box-shadow: 0 0 0 10px rgba(214, 58, 38, 0); } }
@keyframes xf-rise { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
@keyframes xf-grow-x { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
@keyframes xf-pop { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }
@keyframes xf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (prefers-reduced-motion: reduce) {
  .xf-float, .xf-pin, [class*="xf-anim-"], .xf-rise, .xf-grow-x, .xf-pop { animation: none !important; }
  .xf-anim-agent { left: 86%; }
  .xf-anim-gc { left: 86%; }
  .xf-anim-wall { transform: scaleY(0); }
  .xf-anim-lock { opacity: 0; }
}


/* ---- Progress: bold, simple ---- */
.xf-progress { font-family: var(--font-sans); color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.xf-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.xf-progress-label { font-size: 15px; font-weight: 700; }
.xf-progress-num { font-size: 40px; font-weight: 300; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.xf-progress-num span { font-size: .5em; color: var(--ink-3); letter-spacing: 0; }
.xf-progress-lg .xf-progress-num { font-size: 72px; }
.xf-progress-dots { display: inline-flex; gap: 6px; align-items: center; height: 40px; }
.xf-progress-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--xf-tool, var(--tool)); animation: xf-pulse 1200ms linear infinite both; }
.xf-progress-dots i:nth-child(2) { animation-delay: 150ms; }
.xf-progress-dots i:nth-child(3) { animation-delay: 300ms; }

.xf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-sans); }
.xf-step { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; background: var(--chip); color: var(--ink-2); transition: background-color 200ms, color 200ms; }
.xf-step-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--card); color: var(--ink); }
.xf-step-done { background: var(--ink); color: var(--card); }
.xf-step-done .xf-step-dot { background: var(--card); color: var(--ink); }
.xf-step-active { background: var(--xf-tool, var(--tool)); color: var(--xf-on-tool, var(--on-tool)); animation: xf-snap 280ms cubic-bezier(.2, 1.4, .4, 1); }
.xf-step-active .xf-step-dot { background: var(--ink); color: var(--card); }
.xf-progress-panel-dark .xf-step-next { background: var(--graphite); color: var(--on-dark-soft); }
.xf-progress-panel-dark .xf-step-next .xf-step-dot { background: var(--ink); color: var(--card); }

.xf-progress-mark { display: block; flex: none; }
.xf-progress-mark-fill { transition: width 360ms cubic-bezier(.2, .9, .1, 1); }

.xf-progress-panel { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: var(--radius-22); background: var(--card); color: var(--ink); font-family: var(--font-sans); }
.xf-progress-panel-dark { background: var(--ink); color: var(--card); }
.xf-progress-panel-top { display: flex; align-items: center; gap: 20px; }
.xf-progress-panel-text { display: flex; flex-direction: column; gap: 6px; }
.xf-progress-panel-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.xf-progress-panel-line { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.xf-progress-panel-dark .xf-progress-panel-kicker { color: var(--on-dark-muted); }
.xf-progress-panel-dark .xf-progress-num span { color: var(--on-dark-muted); }

@keyframes xf-wait { 0%, 100% { opacity: .18; } 30% { opacity: 1; } }
.xf-meter-wait { animation: xf-wait 1.5s linear infinite; }
.xf-progress-lg .xf-meter { height: 18px; }
.xf-progress-lg .xf-meter-seg { min-height: 8px; }
@keyframes xf-snap { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .xf-meter-wait { animation: none; opacity: .4; }
  .xf-progress-dots i { animation: none; }
  .xf-step-active { animation: none; }
}
