/* Vetfluence · extras.css — styles for js/extras.js.
   Remove with the <link> to this file, the extras.js <script> and the
   <!-- extras:start --> blocks. */

/* ---------------------------------------------------------- 1. compare */
.x-compare { margin: 40px 0 0; }
.x-compare__frame { border-radius: 14px; overflow: hidden; background: #fffdf9; box-shadow: 0 1px 2px rgba(22, 50, 60, .14), 0 34px 60px -36px rgba(22, 50, 60, .55); }
.x-compare__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: linear-gradient(#efece6, #e5e1d9); border-bottom: 1px solid #d6d1c6; }
.x-compare__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.x-compare__bar i:nth-child(2) { background: #febc2e; }
.x-compare__bar i:nth-child(3) { background: #28c840; }
.x-compare__bar span { flex: 1; margin-left: 10px; padding: 4px 10px; border-radius: 6px; background: #fff; text-align: center; font: 500 11px/1.2 var(--f-mono); color: #5c6a70; }
.x-compare__view { position: relative; aspect-ratio: 8 / 5; }
.x-compare__layer { position: absolute; inset: 0; }
.x-compare__layer svg { display: block; width: 100%; height: 100%; }
.x-compare__layer--after { clip-path: inset(0 0 0 var(--x, 50%)); }
.x-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(22, 50, 60, .25), 0 0 12px rgba(22, 50, 60, .3); pointer-events: none; }
.x-compare__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 700 15px/1 var(--f-body); color: var(--ink); box-shadow: 0 4px 14px rgba(22, 50, 60, .35); }
.x-compare__tag { position: absolute; bottom: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(22, 21, 19, .72); color: #fff; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.x-compare__tag--after { left: auto; right: 12px; background: #24576a; }
.x-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.x-compare__view:has(.x-compare__range:focus-visible) .x-compare__handle span { outline: 3px solid #e8a93a; outline-offset: 2px; }
.x-compare figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ---------------------------------------------------------- 2. scanner score */
.x-scorebar { height: 10px; border-radius: 5px; background: var(--paper-2, #e8eef0); overflow: hidden; margin-top: 4px; }
.x-scorebar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #6da894, #3f8a73); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }

/* ---------------------------------------------------------- 3. speed race */
.x-race { margin: 30px 0 34px; padding: 24px 20px 20px; border-radius: 18px; background: linear-gradient(#f6f2ea, #ece6da); box-shadow: inset 0 0 0 1px rgba(22, 50, 60, .08); }
.x-race__phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; justify-items: center; }
.x-race__ph { display: grid; gap: 12px; justify-items: center; width: min(100%, 210px); }
.x-race__dev { position: relative; width: 100%; aspect-ratio: 9 / 17; border-radius: 30px; padding: 8px; background: linear-gradient(145deg, #5b6066, #1c1e21 40%, #2c2f33 70%, #4a4e54); box-shadow: 0 26px 40px -24px rgba(22, 50, 60, .6); }
.x-race__scr { position: relative; height: 100%; border-radius: 23px; overflow: hidden; background: #fff; padding: 34px 10px 10px; display: grid; align-content: start; gap: 8px; }
.x-race__scr::before { content: ""; position: absolute; top: 8px; left: 50%; width: 56px; height: 16px; margin-left: -28px; border-radius: 9px; background: #050506; }
.x-race__scr > * { transition: opacity .25s; }
.js .x-race__scr > * { opacity: 0; }
.x-race__top { height: 22px; border-radius: 6px; background: #e3ecef; font: 600 9px/22px var(--f-mono); color: #2f7a5e; padding: 0 8px; }
.x-race__h { font: 800 13px/1.2 var(--f-display); color: var(--ink); margin: 0; }
.x-race__img { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 11; background: #e9ecec; }
.x-race__img svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: clip-path var(--load, 1s) linear; }
.js .x-race__img svg { clip-path: inset(0 0 100% 0); }
.x-race__btn { height: 30px; border-radius: 15px; background: #24576a; color: #fff; font: 700 10.5px/30px var(--f-body); text-align: center; }
.js .x-race__ph.s1 .x-race__top, .js .x-race__ph.s2 .x-race__h, .js .x-race__ph.s3 .x-race__img, .js .x-race__ph.is-done .x-race__btn { opacity: 1; }
.js .x-race__ph.is-photo .x-race__img svg { clip-path: inset(0 0 0 0); }
.x-race__spin { position: absolute; left: 50%; top: 48%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #dfe3e3; border-top-color: #24576a; animation: x-spin .8s linear infinite; display: none; }
.js .x-race__spin { display: block; opacity: 1; }
.js .x-race__ph.s2 .x-race__spin, .js .x-race__ph.is-done .x-race__spin { opacity: 0; }
.x-race__t { margin: 0; font: 700 26px/1 var(--f-display); font-variant-numeric: tabular-nums; color: #b4503c; }
.x-race__ph--fast .x-race__t { color: #2f7a5e; }
.x-race__t small { display: block; margin-top: 6px; font: 500 11px/1.3 var(--f-mono); letter-spacing: .04em; color: var(--ink-soft); text-align: center; }
.x-race__ph.is-done .x-race__t b::after { content: " ✓"; font-size: .7em; }
.x-race__go { display: block; margin: 18px auto 0; font: 600 14px/1 var(--f-body); padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fffdf9; color: var(--ink); cursor: pointer; }
.x-race__go:disabled { opacity: .5; cursor: default; }
.x-race figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }
@keyframes x-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- 4. tab demo */
.x-tab { margin: 24px 0 30px; padding: 20px; border-radius: 16px; background: #f3efe6; box-shadow: inset 0 0 0 1px rgba(22, 50, 60, .08); display: grid; gap: 14px; }
.x-tab__how { margin: 0; font-size: 15px; }
.x-tab kbd { font: 600 12px/1 var(--f-mono); padding: 4px 8px; border-radius: 6px; background: #fff; box-shadow: 0 2px 0 #cfcac0, inset 0 0 0 1px #d6d2ca; }
.x-tab__page { border-radius: 12px; overflow: hidden; background: #fffdf9; box-shadow: 0 20px 40px -28px rgba(22, 50, 60, .55), 0 0 0 1px rgba(22, 50, 60, .08); }
.x-tab__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; background: #16323c; color: #bfe3d2; font: 600 12px/1.2 var(--f-mono); }
.x-tab__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid #ece8df; }
.x-tab__nav b { margin-right: auto; font: 800 15px/1 var(--f-display); }
.x-tab__h { margin: 18px 14px 12px; font: 800 20px/1.2 var(--f-display); color: var(--ink); }
.x-tab__row { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 14px 18px; }
.x-tab__page button { font: 600 13px/1 var(--f-body); padding: 9px 13px; border-radius: 999px; border: 1.5px solid #c9d1d4; background: #fff; color: var(--ink); cursor: pointer; }
.x-tab__top button { background: transparent; border-color: transparent; color: #fff; font-family: var(--f-mono); padding: 4px 6px; }
.x-tab__page .x-tab__book { background: #24576a; border-color: #24576a; color: #fff; }
.x-tab__page button:focus { outline: none; }
.x-tab__page button:focus-visible, .x-tab__page.is-kbd button:focus { outline: 4px solid #e8a93a; outline-offset: 3px; }
.x-tab__page.is-noring button:focus-visible, .x-tab__page.is-noring.is-kbd button:focus { outline: none; }
.x-tab__ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 14px; }
.x-tab__ctl > button { font: 600 13px/1 var(--f-body); padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fffdf9; color: var(--ink); cursor: pointer; }
.x-tab__ctl label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.x-tab__now { margin-left: auto; font: 500 12px/1.3 var(--f-mono); color: var(--ink-soft); padding: 7px 10px; border-radius: 8px; background: #13262d; color: #cfe3ea; }
.x-tab.is-live .x-tab__now { color: #fff; }

/* ---------------------------------------------------------- 5. five seconds */
.x-5s { margin: 24px 0 30px; display: grid; gap: 14px; }
.x-5s__stage { position: relative; border-radius: 14px; overflow: hidden; background: #fffdf9; box-shadow: 0 1px 2px rgba(22, 50, 60, .14), 0 30px 54px -34px rgba(22, 50, 60, .55); }
.x-5s__shot svg { display: block; width: 100%; height: auto; transition: filter .5s; }
.x-5s__stage.is-blur .x-5s__shot svg { filter: blur(14px) saturate(.6); }
.x-5s__cover { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; background: rgba(22, 50, 60, .86); color: #fff; backdrop-filter: blur(6px); }
.x-5s__cover p { margin: 0; max-width: 34ch; color: #d6e4e9; font-size: 15px; }
.x-5s__cover button, .x-5s__res button { font: 700 14.5px/1 var(--f-body); padding: 13px 20px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.x-5s__clock { position: absolute; top: 14px; right: 14px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 800 24px/1 var(--f-display); color: var(--ink);
  background: radial-gradient(closest-side, #fff 76%, transparent 78% 100%), conic-gradient(#6da894 var(--t5, 0%), #e3e8e6 0); box-shadow: 0 6px 16px rgba(22, 50, 60, .3); }
.x-5s__clock.is-run { animation: x-5s 5s linear forwards; }
@property --t5 { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes x-5s { from { --t5: 0%; } to { --t5: 100%; } }
.x-5s__q { display: grid; gap: 12px; padding: 18px; border-radius: 14px; background: #f3efe6; }
.x-5s__q > p { margin: 0; font-weight: 700; }
.x-5s__q [data-q] { display: grid; gap: 8px; }
.x-5s__q [data-q] > span { font-size: 15px; }
.x-5s__q [data-q] div { display: flex; flex-wrap: wrap; gap: 8px; }
.x-5s__q button { font: 600 13.5px/1 var(--f-body); padding: 9px 13px; border-radius: 999px; border: 1.5px solid #c9d1d4; background: #fff; color: var(--ink); cursor: pointer; }
.x-5s__q button[aria-pressed="true"] { background: #24576a; border-color: #24576a; color: #fff; }
.x-5s__q button:disabled { cursor: default; }
.x-5s__q [data-truth]:not([data-truth=""])::after { content: "Answer on this page: " attr(data-truth); font: 500 12px/1.3 var(--f-mono); color: #2f7a5e; }
.x-5s__res { display: grid; gap: 10px; justify-items: start; padding: 18px; border-radius: 14px; background: #16323c; color: #fff; outline: none; }
.x-5s__res p { margin: 0; color: #d6e4e9; }
.x-5s__res b { color: #fff; }

/* ---------------------------------------------------------- 6. booked call */
.x-invite { display: grid; gap: 8px; margin-bottom: 6px; }
.x-invite__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 26px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fffdf9; color: var(--ink); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .6); }
.x-invite__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #24576a; color: #fff; font: 800 15px/1 var(--f-display); }
.x-invite__row b { display: block; font: 700 14px/1.2 var(--f-body); }
.x-invite .x-invite__row small { font: 500 12px/1.3 var(--f-mono); color: #4e6670; }
.x-invite__tick { width: 24px; height: 24px; fill: none; stroke: #2f8a6d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.x-invite__note { margin: 0; font: 500 12px/1.3 var(--f-mono); color: #c3d5db; opacity: 0; }
.x-invite { opacity: 0; transform: translateY(-18px) scale(.97); }
.x-invite.is-in { animation: x-land .6s cubic-bezier(.2, .9, .25, 1.05) forwards; }
.x-invite.is-in .x-invite__tick { animation: x-draw .45s .55s ease-out forwards; }
.x-invite.is-in .x-invite__note { animation: x-fade .4s .9s forwards; }
.x-invite.is-still, .x-invite.is-still * { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
@keyframes x-land { to { opacity: 1; transform: none; } }
@keyframes x-draw { to { stroke-dashoffset: 0; } }
@keyframes x-fade { to { opacity: 1; } }

/* without script: the race shows its finished state; the demos that need
   script to do anything are not shown at all */
html:not(.js) .x-compare__range, html:not(.js) .x-race__go, html:not(.js) .x-tab, html:not(.js) .x-5s { display: none; }

@media (max-width: 560px) {
  .x-race { padding: 18px 10px 16px; }
  .x-race__phones { gap: 10px; }
  .x-race__t { font-size: 21px; }
  .x-tab__now { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .x-scorebar i, .x-race__img svg, .x-5s__shot svg { transition: none; }
  .x-race__spin { animation: none; }
}
