/* ClipMayhem — clipmayhem.com
   Bold, mischievous, premium. Dark stage, hot pink + yellow + violet.
   Self-hosted variable fonts; no third-party requests. */

@font-face {
  font-family: 'Unbounded';
  src: url('/assets/fonts/unbounded-var-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0b10;
  --bg-2: #13131b;
  --card: #181822;
  --line: #2a2a38;
  --text: #f4f4f8;
  --muted: #a3a3b8;
  --pink: #ff2e63;
  --yellow: #ffe14d;
  --violet: #7c3aed;
  --green: #16c172;
  --radius: 18px;
  --display: 'Unbounded', system-ui, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: clamp(36px, 6.2vw, 76px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.eyebrow { font: 800 13px/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; display: inline-block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 16, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 21px/1 var(--display); }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 800 16px/1 var(--ui); text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 0 #a0103a; }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 4px 0 #a0103a; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn-yellow { background: var(--yellow); color: #111; box-shadow: 0 8px 0 #a68f12; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .btn, .tcard { transition: none !important; } .btn:hover, .tcard:hover { transform: none !important; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; background: radial-gradient(circle, rgba(255, 46, 99, 0.22), transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: auto auto -50% -20%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 60%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 4.8vw, 62px); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lede { font-size: 20px; color: #d5d5e2; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero .fine { font-size: 14px; color: var(--muted); }
.hero .fine a { color: var(--text); }
.paste { display: flex; gap: 10px; margin: 28px 0 14px; padding: 8px; background: var(--bg-2); border: 2px solid var(--line); border-radius: 999px; max-width: 620px; }
.paste:focus-within { border-color: var(--pink); }
.paste input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--text); font: 500 17px var(--ui); padding: 0 16px; }
.paste input:focus { outline: none; }
.paste input::placeholder { color: var(--muted); }
.alt-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 520px) { .paste { flex-direction: column; border-radius: 22px; } .paste .btn { width: 100%; } }
.phone { justify-self: center; width: min(340px, 80vw); aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px; background: linear-gradient(160deg, #2b2b3a, #0f0f16); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #33334a; transform: rotate(2.5deg); }
.phone video, .phone iframe { width: 100%; height: 100%; border: 0; border-radius: 26px; object-fit: cover; background: #000; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .phone { transform: none; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 10px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-weight: 700; counter-increment: s; }
.steps li::before { content: counter(s); display: block; font: 900 26px/1 var(--display); color: var(--pink); margin-bottom: 8px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 14px/1 var(--ui); cursor: pointer; }
.chip[aria-pressed='true'] { background: var(--yellow); color: #111; border-color: var(--yellow); }
.search { width: 100%; max-width: 420px; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); padding: 0 20px; font: 500 16px var(--ui); }

/* Template cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.tcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease; }
.tcard:hover { transform: translateY(-4px); border-color: var(--pink); }
.tcard .media { position: relative; aspect-ratio: 9 / 16; background: #000; }
.tcard .media img, .tcard .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tcard .body { padding: 14px 14px 16px; }
.tcard h3 { font-size: 17px; margin-bottom: 4px; }
.tcard .tag { font-size: 14px; color: #d5d5e2; font-style: italic; margin: 0 0 8px; }
.tcard .best { font-size: 12px; color: var(--muted); margin: 0; }
.tcard .coll { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, 0.6); color: var(--yellow); font: 800 11px/1 var(--ui); letter-spacing: 0.1em; padding: 6px 8px; border-radius: 6px; text-transform: uppercase; }
.empty { color: var(--muted); padding: 30px 0; }

/* Collections */
.collection { margin-bottom: 42px; }
.collection .blurb { color: var(--muted); max-width: 52em; }

/* Template detail */
.detail .wrap { display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: start; }
.detail .phone { transform: none; position: sticky; top: 90px; }
.detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 18px; margin: 20px 0; }
.detail dt { color: var(--muted); font-weight: 600; }
.detail dd { margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
.fields { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.fields li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.fields li b { display: block; }
.fields li span { color: var(--muted); font-size: 15px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
@media (max-width: 860px) { .detail .wrap { grid-template-columns: 1fr; } .detail .phone { position: static; } }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.price.hero-price { border: 2px solid var(--pink); background: linear-gradient(180deg, rgba(255, 46, 99, 0.12), var(--card)); }
.price .name { font: 800 16px/1.2 var(--ui); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.price .amt { font: 900 44px/1 var(--display); }
.price .amt small { font: 600 16px var(--ui); color: var(--muted); }
.price ul { margin: 6px 0 0; padding-left: 18px; color: #d5d5e2; font-size: 15px; }
.price .badge { align-self: flex-start; background: var(--yellow); color: #111; font: 800 12px/1 var(--ui); padding: 6px 10px; border-radius: 999px; }
.free-row { margin-top: 18px; background: var(--bg-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 22px; }
@media (max-width: 960px) { .prices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr; } }

.callout { background: var(--bg-2); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; font-size: 28px; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: 0.4em; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 60px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; margin: 6px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

.sticky-cta { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: none; }
@media (max-width: 760px) { .sticky-cta { display: inline-flex; } }
