/* home-cards-overlay.css: desktop home tool cards (owner, 2026-10-31): the picture fills the whole card and the words
 * sit on top of it, with no black strip underneath. Loaded after home.html's own styles.
 * Also holds the Long -> Shorts story: one long video gets chopped into three clips, the clips drop into TikTok,
 * YouTube and Instagram, each one uploads, done. It runs on one 9s clock so every step stays in sync.
 */
.rd-cards { align-items: stretch; }
.rd-card { height: 420px; background: #04070d !important; }
.rd-card .rd-prev { position: absolute !important; inset: 0; height: auto !important; border-bottom: 0 !important; background: #04070d; }
.rd-card .rd-prev > video { object-fit: cover; }
/* the scrim keeps white words readable on any footage, and it fades out so there is no visible band */
.rd-card-foot { position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 3; padding: 74px 18px 18px !important; background: linear-gradient(180deg, rgba(4,7,13,0) 0%, rgba(4,7,13,.72) 52%, rgba(4,7,13,.92) 100%) !important; pointer-events: none; }
.rd-card-foot h3 { color: #fff !important; font-size: 19px !important; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.rd-card-foot p { color: rgba(255,255,255,.82) !important; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.rd-card-foot .rd-go { top: 22px; right: 12px; background: rgba(255,255,255,.14) !important; border-color: rgba(255,255,255,.2) !important; backdrop-filter: blur(6px); }

/* ---- Long -> Shorts story ---- */
.cls { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(90% 60% at 50% 20%, #17233b 0%, #070b13 72%); --t: 9s; }
.cls * { box-sizing: border-box; }
/* 1. the long video, with the playhead sweeping it */
.cls-wide { position: absolute; left: 7%; right: 7%; top: 30px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; box-shadow: 0 14px 34px rgba(0,0,0,.5); animation: cls-wide var(--t) infinite; }
.cls-wide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cls-tag { position: absolute; left: 7px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(0,0,0,.62); color: #fff; font: 600 10px/1.3 Inter, system-ui, sans-serif; }
@keyframes cls-wide { 0%,34% { opacity: 1; transform: none; } 42%,100% { opacity: 0; transform: translateY(-16px) scale(.94); } }
/* 2. the timeline strip gets cut into three */
.cls-strip { position: absolute; left: 7%; right: 7%; top: 182px; height: 30px; display: flex; animation: cls-stripfade var(--t) infinite; }
.cls-seg { flex: 1; height: 100%; background-size: cover; background-position: center; animation: var(--t) infinite; }
.cls-seg:nth-child(1) { border-radius: 6px 0 0 6px; background-image: url(/videos/card-clip1.jpg); animation-name: cls-seg1; }
.cls-seg:nth-child(2) { background-image: url(/videos/card-clip2.jpg); animation-name: cls-seg2; }
.cls-seg:nth-child(3) { border-radius: 0 6px 6px 0; background-image: url(/videos/card-clip3.jpg); animation-name: cls-seg3; }
@keyframes cls-seg1 { 0%,20% { transform: none; } 27%,100% { transform: translateX(-7px) rotate(-2deg); } }
@keyframes cls-seg2 { 0%,100% { transform: none; } }
@keyframes cls-seg3 { 0%,27% { transform: none; } 34%,100% { transform: translateX(7px) rotate(2deg); } }
@keyframes cls-stripfade { 0%,38% { opacity: 1; } 44%,100% { opacity: 0; } }
.cls-head { position: absolute; top: 176px; bottom: auto; left: 7%; width: 2px; height: 42px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.8); animation: cls-head var(--t) infinite linear; }
@keyframes cls-head { 0% { left: 7%; opacity: 1; } 34% { left: 93%; opacity: 1; } 36%,100% { left: 93%; opacity: 0; } }
.cls-cut { position: absolute; top: 164px; width: 20px; height: 20px; margin-left: -10px; color: #fff; opacity: 0; animation: var(--t) infinite; }
.cls-cut svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cls-cut.c1 { left: 36.5%; animation-name: cls-cut1; }
.cls-cut.c2 { left: 64%; animation-name: cls-cut2; }
@keyframes cls-cut1 { 0%,15% { opacity: 0; transform: translateY(-6px); } 19%,24% { opacity: 1; transform: none; } 28%,100% { opacity: 0; } }
@keyframes cls-cut2 { 0%,23% { opacity: 0; transform: translateY(-6px); } 27%,32% { opacity: 1; transform: none; } 36%,100% { opacity: 0; } }
/* 3. the pieces become vertical clips */
.cls-clips { position: absolute; left: 7%; right: 7%; top: 36px; display: flex; gap: 8px; justify-content: center; }
.cls-clip { width: 30%; aspect-ratio: 9 / 16; border-radius: 9px; background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 22px rgba(0,0,0,.45); opacity: 0; animation: cls-clip var(--t) infinite; }
.cls-clip:nth-child(1) { background-image: url(/videos/card-clip1.jpg); }
.cls-clip:nth-child(2) { background-image: url(/videos/card-clip2.jpg); animation-delay: .12s; }
.cls-clip:nth-child(3) { background-image: url(/videos/card-clip3.jpg); animation-delay: .24s; }
/* 4. each clip drops into its platform */
@keyframes cls-clip { 0%,40% { opacity: 0; transform: translateY(86px) scale(.6); } 47%,62% { opacity: 1; transform: none; } 72%,96% { opacity: .7; transform: translateY(-8px) scale(.42); } 100% { opacity: 0; } }
.cls-apps { position: absolute; left: 7%; right: 7%; top: 196px; display: flex; gap: 8px; justify-content: center; animation: cls-apps var(--t) infinite; }
@keyframes cls-apps { 0%,50% { opacity: 0; transform: translateY(12px); } 56%,96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.cls-app { position: relative; width: 30%; height: 62px; border-radius: 11px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fff; font: 600 10px/1 Inter, system-ui, sans-serif; }
.cls-app svg { width: 18px; height: 18px; fill: currentColor; }
/* 5. Upload is pressed on each, then it ticks */
.cls-up { position: relative; height: 15px; min-width: 50px; padding: 0 5px; border-radius: 5px; display: grid; place-items: center; background: #3B82F6; color: #fff; font: 700 8.5px/1 Inter, system-ui, sans-serif; overflow: hidden; animation: var(--t) infinite; }
.cls-up b, .cls-up i { grid-area: 1 / 1; font-style: normal; font-weight: 700; }
.cls-up i { opacity: 0; }
.cls-up.u1, .cls-up.u1 * { --d: 0s; } .cls-up.u2, .cls-up.u2 * { --d: .3s; } .cls-up.u3, .cls-up.u3 * { --d: .6s; }
.cls-up { animation-name: cls-press; animation-delay: var(--d); }
.cls-up b { animation: cls-word var(--t) infinite; animation-delay: var(--d); }
.cls-up i { animation: cls-done var(--t) infinite; animation-delay: var(--d); }
@keyframes cls-press { 0%,72% { transform: none; background: #3B82F6; } 74% { transform: scale(.86); } 77%,100% { transform: none; background: #16A34A; } }
@keyframes cls-word { 0%,75% { opacity: 1; } 77%,100% { opacity: 0; } }
@keyframes cls-done { 0%,76% { opacity: 0; } 79%,100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .cls *, .cls { animation: none !important; }
  .cls-wide { opacity: 0; } .cls-strip, .cls-head, .cls-cut { display: none; }
  .cls-clip, .cls-apps { opacity: 1; }
}

/* the comet tilt wraps each card, and all the content is absolute now, so the size has to be set on both */
.cf-comet-wrap { height: 420px; }
.cf-comet-wrap .rd-card, .rd-cards .rd-card { height: 420px !important; min-height: 420px; width: 100%; }

/* another sheet caps .rd-prev children, which collapsed the story to zero height */
.rd-card .rd-prev > .cls { position: absolute !important; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; }
.rd-card[data-portal="sfx"] .rd-prev { background: radial-gradient(110% 80% at 50% 30%, #1d3a6b 0%, #0b1426 62%, #070b13 100%) !important; }

/* audit 2026-10-31 */
.cls { container-type: inline-size; }
.cls-strip { top: calc(30px + 86cqw * 9 / 16 + 6px); }
.cls-head { top: calc(30px + 86cqw * 9 / 16); }
.cls-cut { top: calc(30px + 86cqw * 9 / 16 - 16px); }
.cls-apps { top: 170px; }
.cls-up { font-size: 10px; min-width: 56px; }
.sx-prem { left: 12px !important; right: auto !important; }
.sx-pads { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
/* flat buttons: no gradients on controls */
.rd-signin, .rd-plan.pro .cta, .rd-hero1-ic, .rd-plan .badge, .sx-prem { background: #3B82F6 !important; color: #fff !important; }
.rd-signin:hover, .rd-plan.pro .cta:hover { background: #2563EB !important; }
/* header: no sideways scroll on small laptops */
.rd-signin, .rd-built-txt { white-space: nowrap; }
@media (max-width: 1180px) { .rd-built-txt { display: none; } .rd-nav a { font-size: 13px; } }
@media (max-width: 1100px) { .rd-top { overflow: hidden; } .rd-nav { gap: 12px; } }

