/* CartArmor site: animated feature tips over app screenshots. */
.tip-frame { display: block; margin: 0 auto; max-width: 930px; position: relative; }
.tip-frame img { width: 100%; }
.tip-layer { inset: 0; pointer-events: none; position: absolute; }
.tip { --tip-bg: #10231b; left: var(--x); pointer-events: auto; position: absolute; top: var(--y); z-index: 1; }
.tip[data-active="true"] { --tip-bg: #12805c; z-index: 3; }
.tip-dot {
  align-items: center; background: #12805c; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0,0,0,.28);
  color: #fff; cursor: pointer; display: flex; font: 800 11px/1 system-ui, sans-serif; font-style: normal; height: 22px;
  justify-content: center; left: -11px; position: absolute; top: -11px; transform: scale(0);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1) var(--d); width: 22px;
}
.tip-dot::after {
  animation: tip-ping 2.4s ease-out var(--d) infinite; border: 2px solid #12805c; border-radius: 50%;
  content: ""; inset: -5px; opacity: 0; position: absolute;
}
.tip-bubble {
  background: var(--tip-bg); border-radius: 12px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55); color: #fff;
  font: 650 13.5px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; left: 20px; max-width: 250px; opacity: 0;
  padding: 8px 12px; position: absolute; top: 0; transform: translate(-8px, -50%) scale(.92); transform-origin: left center;
  pointer-events: none;
  transition: opacity .3s ease, transform .5s cubic-bezier(.22,1,.36,1), background-color .35s ease;
  width: max-content;
}
.tip-bubble::before {
  border: 6px solid transparent; border-left: 0; border-right-color: var(--tip-bg); content: ""; left: -6px;
  margin-top: -6px; position: absolute; top: 50%; transition: border-color .35s ease;
}
.tip[data-side="left"] .tip-bubble { left: auto; right: 20px; transform: translate(8px, -50%) scale(.92); transform-origin: right center; }
.tip[data-side="left"] .tip-bubble::before { border-left: 6px solid var(--tip-bg); border-right: 0; left: auto; right: -6px; }
.tip-layer.is-live .tip-dot { transform: scale(1); }
.tip-layer.is-live .tip[data-active="true"] .tip-dot { transform: scale(1.18); transition-delay: 0s; }
/* One tip open at a time so the screenshot stays readable. */
.tip-layer.is-live .tip[data-active="true"] .tip-bubble { box-shadow: 0 16px 34px -12px rgba(18,128,92,.75); opacity: 1; pointer-events: auto; transform: translate(0, -50%) scale(1); }
/* Narrow frames: smaller dots and bubbles. */
.tip-layer.is-compact .tip-bubble { font-size: 12px; max-width: 180px; padding: 6px 10px; }
.tip-layer.is-compact .tip-dot { font-size: 10px; height: 18px; left: -9px; top: -9px; width: 18px; }
@keyframes tip-ping { 0% { opacity: .7; transform: scale(.8); } 80%, 100% { opacity: 0; transform: scale(1.9); } }
@media (prefers-reduced-motion: reduce) {
  .tip-dot, .tip-bubble { transition: none; }
  .tip-dot::after { animation: none; }
}

/* Hero demo: the off state mirrors the storefront. The card greys out, but the
   switch stays in colour and a tip explains what turning it on does. */
.ca-card { filter: none !important; }
.ca-card[data-on="false"] { background: linear-gradient(#000 0 0), var(--v-bg); background-blend-mode: color, normal; }
.ca-card[data-on="false"] :not(.ca-switch, .ca-switch *, .ca-tip, .ca-tip *):not(:has(.ca-switch, .ca-tip)) { filter: grayscale(1); }
.ca-card[data-on="false"] .ca-offer { border-color: rgba(128,128,128,.28); }
.ca-card[data-on="false"] .ca-switch { animation: ca-invite 2.4s ease-out infinite; background: color-mix(in srgb, var(--v-accent) 30%, var(--v-track)); box-shadow: inset 0 0 0 2px var(--v-accent); }
.ca-card[data-on="false"] .ca-switch i { animation: ca-nudge 3s ease-in-out 1s 3; }
.ca-tip { animation: ca-tip-in .45s cubic-bezier(.22,1,.36,1) both; background: var(--v-accent); border-radius: 12px; color: var(--v-atext); cursor: pointer; display: none; font-size: 13px; font-weight: 700; line-height: 1.3; margin: 12px 0 0 auto; max-width: max-content; padding: 7px 12px; position: relative; }
.ca-tip::before { border: 7px solid transparent; border-bottom-color: var(--v-accent); border-top: 0; content: ""; position: absolute; right: 19px; top: -7px; }
.ca-card[data-on="false"] .ca-tip { display: block; }
.ca-switch.ca-tap::before { animation: ca-tap .6s ease-out; background: var(--v-accent); border-radius: 50%; content: ""; height: 44px; left: 50%; margin: -22px 0 0 -22px; opacity: 0; position: absolute; top: 50%; width: 44px; }
@keyframes ca-invite { 0% { box-shadow: inset 0 0 0 2px var(--v-accent), 0 0 0 0 color-mix(in srgb, var(--v-accent) 55%, transparent); } 70%, 100% { box-shadow: inset 0 0 0 2px var(--v-accent), 0 0 0 11px transparent; } }
@keyframes ca-nudge { 0%, 60%, 100% { transform: translateX(0); } 74% { transform: translateX(8px); } 86% { transform: translateX(0); } }
@keyframes ca-tip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ca-tap { from { opacity: .45; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
  .ca-card[data-on="false"] .ca-switch, .ca-card[data-on="false"] .ca-switch i, .ca-tip, .ca-switch.ca-tap::before { animation: none; }
}

