/* Home hero: full bleed video, copy on the left over a light scrim, live scan card on the right.
   Base state is the finished card, so a frozen frame or no JS never shows an empty card. */
.vh { padding: 12px 12px 0; }
.vh-frame { position: relative; overflow: hidden; border-radius: 22px; min-height: clamp(600px, calc(100svh - 66px - 40px), 820px);
  display: grid; grid-template-columns: minmax(0, 600px) 1fr; align-items: center; background: #e9ece6; isolation: isolate; }
.vh-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.vh-scrim { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(246, 247, 243, .97) 0%, rgba(246, 247, 243, .93) 34%, rgba(246, 247, 243, .55) 50%, rgba(246, 247, 243, 0) 64%),
              linear-gradient(0deg, rgba(246, 247, 243, .9) 0%, rgba(246, 247, 243, 0) 22%); }
.vh-copy { padding: 56px clamp(24px, 4vw, 64px) 120px; }
.vh-copy h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); margin: 0 0 .18em; letter-spacing: -.025em; white-space: nowrap; }
.vh-copy h1 em { font-style: normal; color: var(--acc); }
.vh-tag { font: 700 clamp(1.15rem, 1.6vw, 1.4rem)/1.35 'Archivo', sans-serif; color: var(--ink); margin: 0 0 12px; }
.vh-lead { font-size: 1.15rem; color: var(--ink2); margin: 0 0 6px; max-width: 34em; }

/* Styled eyebrow: a pill with a live dot and the WordPress.org listing */
.vh-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); font: 700 .95rem 'Archivo', sans-serif; text-decoration: none; }
.vh-eyebrow .wp { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 800 .9rem 'Archivo', sans-serif; }
.vh-eyebrow .go { color: var(--acc-d); }
.vh-eyebrow:hover { border-color: var(--acc); }

.vh .scan-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); margin-top: 22px; max-width: 560px; }
.vh .scan-form { margin: 0; }
.vh .hint { margin: 10px 4px 0; color: var(--ink2); font-size: 1rem; }

/* Live scan card */
.vh-card { justify-self: end; align-self: end; margin: 0 clamp(20px, 3vw, 48px) 110px 0; width: min(360px, 92%);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(18, 32, 43, .18); }
.vc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.vc-title { font: 800 1rem 'Archivo', sans-serif; display: flex; align-items: center; gap: 8px; }
.vc-title i { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 rgba(14, 122, 95, .5); }
.vc-host { color: var(--ink2); font-size: .95rem; font-weight: 700; }
.vc-rows { list-style: none; padding: 0; margin: 0; }
.vc-rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1rem; }
.vc-rows .st { font: 700 .875rem 'Archivo', sans-serif; padding: 3px 10px; border-radius: 999px; background: var(--acc-l); color: var(--acc-d); white-space: nowrap; }
.vc-rows .st::before { content: "Fixed"; }
.vc-score { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.vc-score b { font: 800 2.6rem/1 'Archivo', sans-serif; color: var(--acc); min-width: 2ch; }
.vc-score span { color: var(--ink2); font-weight: 600; }
.vc-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--acc-l); overflow: hidden; }
.vc-bar i { display: block; height: 100%; width: 94%; background: var(--acc); border-radius: inherit; }

/* Motion, only once JS has started the loop */
.vh-card.run .vc-rows li .st { background: var(--amb-l); color: #8a4f00; }
.vh-card.run .vc-rows li .st::before { content: "Checking"; }
.vh-card.run .vc-rows li.done .st { background: var(--acc-l); color: var(--acc-d); }
.vh-card.run .vc-rows li.done .st::before { content: "Fixed"; }
.vh-card.run .vc-bar i { transition: width .5s ease; }
.vh-card.run .vc-title i { animation: vcPulse 1.6s infinite; }
@keyframes vcPulse { 70% { box-shadow: 0 0 0 8px rgba(14, 122, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 122, 95, 0); } }

/* Bleed: the next card rides up over the bottom of the hero */
.lift { position: relative; z-index: 2; margin-top: -58px; }
.lift-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 40px rgba(18, 32, 43, .12);
  padding: 22px 26px; display: grid; grid-template-columns: auto 1fr; gap: 8px 26px; align-items: center; }
.lift-card h2 { font-size: 1.25rem; margin: 0; }
.lift-card p { margin: 0; color: var(--ink2); font-size: 1rem; }
.lift-card .chips { margin: 0; grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.lift-card .chips li { font-size: .95rem; padding: 7px 14px; }

@media (max-width: 960px) {
  .vh { padding: 8px 8px 0; }
  .vh-frame { display: block; min-height: 0; background: var(--bg); }
  .vh-media { position: relative; height: 36svh; min-height: 250px; max-height: 400px; object-position: 50% 40%; border-radius: 18px 18px 0 0; }
  .vh-scrim { inset: auto 0 auto 0; top: calc(min(max(36svh, 250px), 400px) - 90px); height: 90px; background: linear-gradient(0deg, var(--bg), rgba(246, 247, 243, 0)); }
  .vh-copy { padding: 6px 16px 26px; margin-top: -40px; position: relative; }
  .vh-card { margin: 0 16px 16px; width: auto; max-width: 520px; background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
  .vc-score b { font-size: 2.2rem; }
  .vh-copy h1 { font-size: clamp(2.4rem, 10vw, 3.2rem); }
  .lift { margin-top: 0; }
  .lift-card { grid-template-columns: 1fr; }
  .lift-card .chips { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-card.run .vc-title i { animation: none; }
}
