/* Home page: Magic Clips — the "paste a link" box in the hero and the #clips showcase. Tokens from app.css / landing.css. */

/* ---------- hero link box ---------- */
.clip-link { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; padding: 6px 6px 6px 12px; max-width: 560px; border: 1px solid var(--text); border-radius: 10px; background: var(--field, #fff); box-shadow: 4px 4px 0 var(--accent); }
.clip-link .cl-ic { font-size: 18px; }
.clip-link input[type=url] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--text); padding: 8px 2px; }
.clip-link .btn { white-space: nowrap; }
@media (max-width: 520px) { .clip-link { flex-wrap: wrap; padding: 8px; } .clip-link .btn { width: 100%; } .clip-link .cl-ic { display: none; } }
a.pill { text-decoration: none; color: inherit; }

/* ---------- showcase ---------- */
#clips .mcl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: center; }
.mcl-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.mcl-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; }
.mcl-steps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--mono); border: 1px solid var(--text); background: var(--accent); color: var(--on-accent, #17150f); }
.mcl-steps b { font: 700 17px/1.25 var(--display); letter-spacing: -0.01em; }
.mcl-steps span { color: var(--muted); font-size: 14.5px; }
.mcl-stage { position: relative; min-height: 420px; border: 1px solid var(--text); border-radius: 12px; background: repeating-linear-gradient(90deg, transparent 0 23px, color-mix(in srgb, var(--text) 6%, transparent) 23px 24px), var(--panel-2, var(--bg)); padding: 22px; overflow: hidden; }
.mcl-src { display: flex; align-items: center; gap: 10px; width: 62%; padding: 10px 12px; border: 1px solid var(--text); border-radius: 8px; background: #17150f; color: #f3f0e8; font: 600 12px var(--mono); }
.mcl-src i { flex: 1; height: 18px; border-radius: 3px; background: repeating-linear-gradient(90deg, #ffd60a 0 2px, transparent 2px 5px); opacity: .75; order: 2; }
.mcl-cards { display: grid; gap: 10px; width: 58%; margin-top: 18px; }
.mcl-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--text); border-radius: 8px; background: var(--panel, #fff); box-shadow: 3px 3px 0 var(--text); animation: mcl-in 7s ease-out infinite both; }
.mcl-card:nth-child(2) { animation-delay: .35s; } .mcl-card:nth-child(3) { animation-delay: .7s; }
.mcl-card strong { display: block; font: 700 14px/1.2 var(--display); }
.mcl-card em { font-style: normal; font-size: 12px; color: var(--muted); }
.mcl-card .sc { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 15px var(--display); border: 3px solid currentColor; }
.sc.hi { color: #1fa463; } .sc.mid { color: #d99a00; }
.mcl-phone { position: absolute; right: 22px; bottom: 22px; width: 36%; aspect-ratio: 9 / 16; border: 1px solid var(--text); border-radius: 14px; background: linear-gradient(170deg, #3f3a2a, #17150f); box-shadow: 6px 6px 0 var(--accent); overflow: hidden; }
.mcl-head { position: absolute; top: 12%; left: 8%; right: 8%; text-align: center; padding: 4px 6px; background: #ffd60a; color: #17150f; font: 900 clamp(9px, 1.1vw, 13px)/1.15 Montserrat, var(--display); border-radius: 3px; }
.mcl-emoji { position: absolute; top: 46%; left: 14%; font-size: clamp(26px, 3vw, 40px); transform: rotate(-8deg); animation: mcl-pop 3.5s ease-out infinite both; }
.mcl-cap { position: absolute; bottom: 18%; left: 6%; right: 6%; text-align: center; color: #fff; font: 900 clamp(11px, 1.3vw, 16px)/1.2 Montserrat, var(--display); text-transform: uppercase; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.mcl-cap b { color: #2fe58a; } .mcl-cap i { font-style: normal; color: #ffe600; }
.mcl-ar { margin: 26px 0 0; padding: 14px 18px; border: 1px dashed var(--text); border-radius: 8px; font-size: 14.5px; color: var(--text-2, var(--muted)); }
.mcl-ar b { color: var(--text); }
#clips .cta-row { margin-top: 22px; }
@keyframes mcl-in { 0%, 8% { opacity: 0; transform: translateX(-14px); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes mcl-pop { 0%, 40% { opacity: 0; transform: scale(.4) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.15) rotate(-8deg); } 58%, 85% { opacity: 1; transform: scale(1) rotate(-8deg); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mcl-card, .mcl-emoji { animation: none; } }
@media (max-width: 900px) { #clips .mcl { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mcl-stage { min-height: 360px; padding: 14px; } .mcl-src, .mcl-cards { width: 100%; } .mcl-phone { position: relative; right: auto; bottom: auto; width: 46%; margin: 16px auto 0; } }
html[dir="rtl"] .mcl-phone { right: auto; left: 22px; }
