/* Homepage: Motion section, mode table, video lightbox, mobile sticky CTA.
   Plain CSS because assets/css/tailwind.css is prebuilt (new utility classes would not exist). */

.hm-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(147, 51, 234, 0.16), transparent 70%),
    radial-gradient(50% 40% at 90% 30%, rgba(217, 70, 239, 0.12), transparent 70%),
    #08080a;
  padding: 64px 0 72px;
  scroll-margin-top: 80px;
}
.hm-wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.hm-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 6px 12px;
  background: linear-gradient(90deg, rgba(217, 70, 239, 0.18), rgba(251, 146, 60, 0.18));
  border: 1px solid rgba(232, 121, 249, 0.35);
  color: #f5d0fe; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.hm-head h2 {
  margin: 16px 0 0; color: #fff; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 5.4vw, 3.25rem); line-height: 1.08; text-wrap: balance;
}
.hm-head h2 .hm-grad {
  background: linear-gradient(90deg, #c084fc, #e879f9 45%, #fb923c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hm-head p { margin: 16px auto 0; color: #a1a1aa; font-size: 1.05rem; line-height: 1.65; max-width: 40rem; }

.hm-features { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hm-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hm-features { grid-template-columns: repeat(4, 1fr); } }
.hm-feature {
  border-radius: 16px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}
.hm-feature-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: rgba(168, 85, 247, 0.16); color: #d8b4fe;
}
.hm-feature-icon svg { width: 18px; height: 18px; }
.hm-feature h3 { margin: 12px 0 0; color: #fff; font-size: 0.98rem; font-weight: 650; }
.hm-feature p { margin: 6px 0 0; color: #a1a1aa; font-size: 0.88rem; line-height: 1.55; }

.hm-subhead { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 48px 0 14px; }
.hm-subhead h3 { margin: 0; color: #fff; font-size: 1.15rem; font-weight: 700; }
.hm-subhead p { margin: 4px 0 0; color: #71717a; font-size: 0.85rem; }

.hm-styles {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .hm-styles { grid-auto-columns: 26%; } }
@media (min-width: 1024px) { .hm-styles { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.hm-style { scroll-snap-align: start; margin: 0; }
.hm-style-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08); background: #111;
}
.hm-style-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-style figcaption { padding: 8px 2px 0; }
.hm-style strong { display: block; color: #f4f4f5; font-size: 0.85rem; font-weight: 600; }
.hm-style figcaption span { display: block; color: #71717a; font-size: 0.75rem; margin-top: 2px; }

.hm-modes { margin-top: 48px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; background: rgba(255, 255, 255, 0.02); }
.hm-modes table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hm-modes caption { text-align: left; padding: 16px 18px 4px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.hm-modes th, .hm-modes td { text-align: left; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
.hm-modes thead th { color: #71717a; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; border-top: 0; }
.hm-modes tbody th { color: #fff; font-weight: 600; white-space: nowrap; }
.hm-modes td { color: #a1a1aa; }
.hm-modes td.hm-rate { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.hm-modes thead th:last-child { text-align: right; }
.hm-modes tr.hm-rec { background: rgba(168, 85, 247, 0.08); }
.hm-pill {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; vertical-align: 1px;
  background: rgba(168, 85, 247, 0.2); color: #e9d5ff; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 520px) {
  .hm-modes th, .hm-modes td { padding: 11px 12px; }
  .hm-modes .hm-best { display: none; }
}

.hm-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 12px; background: #9333ea; color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(147, 51, 234, 0.7); transition: background 0.2s, transform 0.2s;
}
.hm-btn:hover { background: #a855f7; transform: translateY(-1px); }
.hm-cta p { margin: 0; color: #71717a; font-size: 0.8rem; }
@media (max-width: 639px) { .hm-cta .hm-btn { width: 100%; } }

/* Hero "New: Motion" chip */
.hm-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 20px;
  padding: 6px 14px 6px 6px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(232, 121, 249, 0.3); background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7; font-size: 0.8rem; transition: border-color 0.2s, background 0.2s;
}
.hm-chip:hover { border-color: rgba(232, 121, 249, 0.6); background: rgba(255, 255, 255, 0.07); }
.hm-chip b {
  padding: 3px 8px; border-radius: 999px; color: #fff; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(90deg, #d946ef, #fb923c);
}

/* Showcase: tap to watch with sound */
[data-full-src] { cursor: pointer; }
.hm-play-hint {
  position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(255, 255, 255, 0.92); color: #111;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease;
}
.hm-play-hint svg { width: 16px; height: 16px; margin-left: 2px; display: block; }
[data-full-src]:hover .hm-play-hint { transform: scale(1.1); }

.hm-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.88); padding: 16px;
}
.hm-lightbox.is-open { display: flex; }
.hm-lightbox video { max-width: 100%; max-height: 86vh; border-radius: 14px; background: #000; }
.hm-lightbox button {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 22px; cursor: pointer;
}

/* Mobile sticky CTA (shown after the hero scrolls away) */
.hm-sticky { display: none; }
@media (max-width: 639px) {
  .hm-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, rgba(8, 8, 10, 0.97) 60%, rgba(8, 8, 10, 0));
    transform: translateY(110%); transition: transform 0.25s ease;
  }
  .hm-sticky.is-visible { transform: translateY(0); }
  .hm-sticky .hm-btn { width: 100%; }
  body.hm-has-sticky { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-btn, .hm-sticky { transition: none; }
}

/* "Made with Motion" real samples: 4 across on desktop, swipe on phones */
@media (min-width: 1024px) { .hm-samples { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .hm-samples { grid-auto-columns: 62%; } }
.hm-stylelist { margin: 14px 0 0; color: #71717a; font-size: 0.82rem; line-height: 1.6; }
.hm-stylelist strong { color: #d4d4d8; font-weight: 600; }

/* Keep the site's back-to-top button above the mobile sticky CTA */
@media (max-width: 639px) {
  body.hm-has-sticky #back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; }
}
.hm-pill-muted { background: rgba(255, 255, 255, 0.08); color: #a1a1aa; }

/* Trust strip: Trustpilot rating + TAAFT badge */
.hm-trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.hm-trust img { width: 240px; height: auto; }
.hm-tp {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s;
}
.hm-tp:hover { border-color: rgba(0, 182, 122, 0.6); }
.hm-tp-stars { display: inline-flex; gap: 3px; }
.hm-tp-stars svg { width: 20px; height: 20px; padding: 2px; border-radius: 3px; background: #00b67a; color: #fff; }
.hm-tp-part svg { background: linear-gradient(90deg, #00b67a 20%, #3f3f46 20%); }
.hm-tp-text { color: #a1a1aa; font-size: 0.85rem; line-height: 1.35; }
.hm-tp-text strong { color: #fff; }
.hm-tp-text span { display: block; color: #34d399; font-size: 0.78rem; }

/* Creator reviews (verbatim from Trustpilot) */
.hm-trust-title { margin: 0 0 6px; color: #fff; font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 700; letter-spacing: -0.01em; text-align: center; }
.hm-reviews { width: 100%; display: grid; gap: 12px; margin-top: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hm-reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hm-reviews { grid-template-columns: repeat(4, 1fr); } }
.hm-review { margin: 0; padding: 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); display: flex; flex-direction: column; gap: 12px; }
.hm-review-stars svg { width: 16px; height: 16px; }
.hm-review blockquote { margin: 0; color: #e4e4e7; font-size: 0.92rem; line-height: 1.55; flex: 1; }
.hm-review figcaption { color: #71717a; font-size: 0.78rem; }
.hm-reviews-link { margin-top: 6px; color: #34d399; font-size: 0.85rem; text-decoration: none; }
.hm-reviews-link:hover { text-decoration: underline; }
