/* Kapyari Labs Thumbnail Studio: same Apple-style family as Cinematic Studio, with a red accent. Mobile first. */
html { background: #000; color-scheme: dark; scrollbar-color: rgba(255,255,255,.2) #000; }
html::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.9)), url("/assets/space-bg.webp?v=20260923") center / cover no-repeat, #000; filter: grayscale(1); }
@media (max-width: 820px) { html::before { background-position: 0 0, 90% center, 0 0; } }
body.yt { margin: 0; background: transparent !important; color: #f5f5f7; font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.yt { --red: #ff4d4d; --red2: #ff8a3d; --mut: #a1a1a6; --dim: #6e6e73; --line: rgba(255,255,255,.1); --card: #121214; --card2: #1c1c1f;
  --ease: cubic-bezier(.22,1,.36,1); --display: Outfit, Inter, system-ui, sans-serif; }
.yt *, .yt *::before, .yt *::after { box-sizing: border-box; }
.yt [hidden] { display: none !important; }
.yt-main svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yt-main h1, .yt-main h2, .yt-main h3 { margin: 0; font-family: var(--display); color: #f5f5f7; letter-spacing: -.03em; }
.yt-main em { font-style: normal; background: linear-gradient(100deg, #ffb199 0%, var(--red) 45%, var(--red2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yt-main button, .yt-main input, .yt-main select { font: inherit; color: inherit; }
.yt-main { overflow-x: clip; }
.yt-main a:focus-visible, .yt-main button:focus-visible, .yt-main input:focus-visible, .yt-main label:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }

/* Buttons */
.yt .yt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px;
  background: #fff; color: #000 !important; font: 700 16px/1 Inter, sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s; box-shadow: 0 10px 30px -12px rgba(255,255,255,.35); }
.yt-btn:hover { background: #f0f0f2; transform: translateY(-1px); }
.yt-btn:active { transform: scale(.97); }
.yt-btn svg { width: 19px; height: 19px; stroke-width: 2.4; }
.yt .yt-btn.ghost { background: rgba(255,255,255,.08); color: #fff !important; box-shadow: inset 0 0 0 1px var(--line); }
.yt-btn.ghost:hover { background: rgba(255,255,255,.14); }
.yt-link { display: inline-flex; align-items: center; gap: 2px; color: var(--red); font-weight: 600; font-size: 16px; text-decoration: none; }
.yt-link svg { width: 18px; height: 18px; transition: transform .2s; }
.yt-link:hover svg { transform: translateX(3px); }
.yt-fine { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 18px 0 0; color: var(--dim); font-size: 13px; font-weight: 500; }
.yt-fine span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.yt-fine span + span::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--dim); margin-right: 4px; }
.yt-fine a { color: inherit; }

/* Hero */
.yt-hero { position: relative; display: grid; gap: 30px; align-items: center; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 30px; }
.yt-hero::before { content: ""; position: absolute; z-index: -1; inset: -120px -30% auto; height: 760px; pointer-events: none;
  background: radial-gradient(40% 50% at 70% 40%, rgba(255,77,77,.20), transparent 70%), radial-gradient(35% 40% at 25% 30%, rgba(255,138,61,.12), transparent 70%); }
.yt-hero-copy { text-align: center; animation: ytUp .9s var(--ease) both; }
.yt-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--red); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.yt-kick svg { width: 20px; height: 20px; }
.yt-hero h1 { font-size: clamp(44px, 12vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.yt-lead { max-width: 480px; margin: 18px auto 0; color: var(--mut); font-size: clamp(17px, 4.4vw, 21px); line-height: 1.45; font-weight: 500; }
.yt-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 26px; }

/* Fanned stack of real thumbnails made by the studio */
.yt-hero-vis { position: relative; width: 100%; max-width: 620px; margin: 0 auto; aspect-ratio: 16 / 11; animation: ytUp 1s .1s var(--ease) both; }
.yt-fan-card { position: absolute; left: 50%; top: 50%; width: 78%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--card2);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); transition: transform .8s var(--ease); }
.yt-fan-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-fan-card:nth-child(1) { transform: translate(-64%, -76%) rotate(-7deg); }
.yt-fan-card:nth-child(2) { transform: translate(-36%, -60%) rotate(6deg); }
.yt-fan-card:nth-child(3) { transform: translate(-50%, -28%) rotate(-1deg); z-index: 2; box-shadow: 0 40px 80px -20px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.12), 0 0 60px -10px rgba(255,77,77,.35); }
.yt-hero-vis:hover .yt-fan-card:nth-child(1) { transform: translate(-68%, -82%) rotate(-10deg); }
.yt-hero-vis:hover .yt-fan-card:nth-child(2) { transform: translate(-32%, -66%) rotate(9deg); }

/* Sections */
.yt-sec { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 10px; scroll-margin-top: 60px; }
.yt-sec-h { text-align: center; margin-bottom: 30px; }
.yt-sec-h h2 { font-size: clamp(34px, 8.6vw, 60px); font-weight: 800; line-height: 1.04; }
.yt-sec-h p { max-width: 540px; margin: 14px auto 0; color: var(--mut); font-size: clamp(16px, 4vw, 19px); line-height: 1.5; font-weight: 500; }

/* Design cards */
.yt-designs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 639px) { .yt-designs .yt-design { border-radius: 16px; } .yt-designs .yt-design-txt { padding: 10px 12px 12px; } .yt-designs .yt-design-txt b { font-size: 15px; } .yt-designs .yt-design-txt span { display: none; } }
.yt-design { display: block; width: 100%; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--card); text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .3s; }
.yt-design:hover { transform: translateY(-3px); }
.yt-design[aria-checked=true] { box-shadow: inset 0 0 0 2px var(--red), 0 0 40px -10px rgba(255,77,77,.5); }
.yt-design-pic { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--card2); }
.yt-design-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-design-txt { display: block; padding: 14px 18px 18px; }
.yt-design-txt b { display: block; font: 700 18px/1.2 var(--display); letter-spacing: -.01em; }
.yt-design-txt span { display: block; margin-top: 4px; color: var(--mut); font-size: 14px; line-height: 1.45; }
@media (min-width: 640px) { .yt-designs { gap: 14px; } }
@media (min-width: 1100px) { .yt-designs { grid-template-columns: repeat(4, 1fr); } }

/* Studio */
.yt-studio { display: grid; gap: 18px; align-items: start; }
.yt-stage { position: sticky; top: 56px; z-index: 5; margin: 0 -20px; padding: 10px 20px 12px; background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.yt-canvas-wrap { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1); background: var(--card2); }
.yt-canvas-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; touch-action: none; cursor: grab; }
.yt-canvas-wrap canvas.drag { cursor: grabbing; }
.yt-drag-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.7);
  font-size: 12px; font-weight: 600; color: #fff; pointer-events: none; transition: opacity .4s; white-space: nowrap; }
.yt-drag-hint.off { opacity: 0; }
.yt-save { display: flex; gap: 8px; margin-top: 10px; }
.yt-save .yt-btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.yt-save #ytDownload { flex: 1; }
.yt-spec { margin: 8px 0 0; color: var(--dim); font-size: 12px; text-align: center; }

.yt-panel { display: grid; gap: 12px; }
.yt-group { padding: 18px; border-radius: 22px; background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.yt-group:empty { display: none; }
.yt-group h3 { margin-bottom: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); font-family: Inter, sans-serif; }
.yt-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.yt-seg button { min-height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--mut); font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.yt-seg button[aria-checked=true] { background: #fff; color: #000; }

.yt-photos { display: grid; gap: 12px; }
.yt-photo { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.yt-photo-pick { position: relative; width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: var(--card2) center / cover; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.yt-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.yt-photo-pick::after { content: "+"; position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #000; font: 700 15px/20px Inter, sans-serif; text-align: center; }
.yt-photo-body { min-width: 0; }
.yt-photo-body b { display: block; font-size: 14px; font-weight: 600; }
.yt-photo-body small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }
.yt-zoom { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--dim); }
.yt-zoom svg { width: 16px; height: 16px; flex: none; }
.yt input[type=range] { flex: 1; min-width: 0; height: 28px; accent-color: var(--red); background: none; }

.yt-fields { display: grid; gap: 12px; }
.yt-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #d4d4d8; }
.yt-field input { width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--card2); font-size: 16px; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line); text-transform: uppercase; }
.yt-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--red); }
.yt-field small { color: var(--dim); font-weight: 500; }

.yt-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.yt-swatches button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--sw);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12); transition: transform .2s; }
.yt-swatches button[aria-checked=true] { box-shadow: 0 0 0 3px #000, 0 0 0 5px #fff; transform: scale(1.05); }

.yt-toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.yt-toggle input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: #3a3a3c; cursor: pointer; transition: background .2s; }
.yt-toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.yt-toggle input:checked { background: var(--red); }
.yt-toggle input:checked::after { transform: translateX(20px); }
.yt-reset { justify-self: center; margin-top: 4px; padding: 10px 14px; border: 0; background: none; color: var(--dim); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.yt-reset:hover { color: #fff; }

@media (min-width: 900px) {
  .yt-studio { grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; }
  .yt-stage { top: 76px; margin: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .yt-canvas-wrap { border-radius: 20px; }
  .yt-save { margin-top: 14px; }
  .yt-save .yt-btn { min-height: 50px; }
}

/* Feed check */
.yt-feed { margin-top: 40px; padding: 24px 20px; border-radius: 26px; background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.yt-feed-h { text-align: center; margin-bottom: 20px; }
.yt-feed-h h3 { font-size: 22px; font-weight: 700; }
.yt-feed-h p { margin: 6px auto 0; max-width: 460px; color: var(--mut); font-size: 14.5px; line-height: 1.5; }
.yt-feed-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.yt-vid-pic { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--card2); }
.yt-vid-pic canvas { display: block; width: 100%; height: 100%; }
.yt-vid-pic span { position: absolute; right: 5px; bottom: 5px; padding: 2px 5px; border-radius: 4px; background: rgba(0,0,0,.8); font-size: 10px; font-weight: 600; }
.yt-vid-meta { display: flex; gap: 8px; margin-top: 8px; }
.yt-vid-meta .av { flex: none; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red2)); }
.yt-vid-meta div { min-width: 0; }
.yt-vid-meta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.yt-vid-meta small { display: block; margin-top: 3px; color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-vid.ghost { opacity: .45; }
.yt-vid.ghost .yt-vid-meta b { height: 10px; margin-top: 3px; border-radius: 4px; background: var(--card2); }
.yt-vid.ghost .yt-vid-meta small { width: 60%; height: 8px; margin-top: 6px; border-radius: 4px; background: var(--card2); }
.yt-vid.ghost .av { background: var(--card2); }
@media (max-width: 560px) {
  .yt-feed-row { grid-template-columns: 1fr; max-width: 360px; }
  .yt-vid.ghost { display: none; }
}

/* How it works */
.yt-steps { display: grid; gap: 12px; max-width: 1020px; margin: 0 auto; padding: 0; list-style: none; }
.yt-steps li { display: grid; justify-items: center; text-align: center; padding: 26px 22px; border-radius: 22px; background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.yt-step-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: rgba(255,77,77,.12); color: var(--red); }
.yt-step-ic svg { width: 24px; height: 24px; }
.yt-steps small { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.yt-steps b { margin-top: 4px; font: 700 19px/1.25 var(--display); }
.yt-steps li > span:last-child { margin-top: 6px; color: var(--mut); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 760px) { .yt-steps { grid-template-columns: repeat(3, 1fr); } }

/* Questions */
.yt-faq-intro { text-align: center; margin-bottom: 26px; }
.yt-faq-intro h2 { font-size: clamp(34px, 8.6vw, 56px); font-weight: 800; line-height: 1.04; }
.yt-faq-intro p { margin: 12px 0 0; color: var(--mut); font-size: 16px; }
.yt-faq a { color: var(--red); text-decoration: none; font-weight: 600; }
.yt-faq-grid { display: grid; gap: 12px; max-width: 1100px; margin: 0 auto; }
.yt-faq-grid article { text-align: center; padding: 22px; border-radius: 22px; background: #0a0a0c; box-shadow: inset 0 0 0 2px rgba(255,255,255,.05); transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.yt-faq-grid article:hover { transform: scale(1.02); box-shadow: inset 0 0 0 2px rgba(255,77,77,.55), 0 0 30px rgba(255,77,77,.15); }
.yt-faq-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: rgba(255,77,77,.12); color: var(--red); }
.yt-faq-ic svg { width: 20px; height: 20px; }
.yt-faq-grid h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.yt-faq-grid p { margin: 8px 0 0; color: var(--mut); font-size: 14.5px; line-height: 1.55; }
@media (min-width: 640px) { .yt-faq-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .yt-faq-grid { grid-template-columns: repeat(3, 1fr); } }

/* End */
.yt-end { position: relative; padding: 100px 20px 120px; text-align: center; }
.yt-end::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(50% 60% at 50% 60%, rgba(255,77,77,.14), transparent 70%); }
.yt-end h2 { margin-bottom: 26px; font-size: clamp(34px, 8.6vw, 60px); font-weight: 800; line-height: 1.04; }

/* Toast */
.yt-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px;
  background: #fff; color: #000; font: 600 14px/1.2 Inter, sans-serif; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 40px); text-align: center; }
.yt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Desktop hero side by side */
@media (min-width: 980px) {
  .yt-hero { grid-template-columns: 1fr 1.1fr; gap: 40px; padding: 70px 0 40px; }
  .yt-hero-copy { text-align: left; }
  .yt-lead { margin-left: 0; }
  .yt-cta, .yt-hero .yt-fine { justify-content: flex-start; }
}

@keyframes ytUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .yt *, .yt *::before, .yt *::after { animation: none !important; transition: none !important; } }

/* Guide */
.yt-guide-grid { display: grid; gap: 12px; max-width: 1100px; margin: 0 auto; }
.yt-guide-grid article { padding: 22px; border-radius: 22px; background: #0a0a0c; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.yt-guide-grid h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.yt-guide-grid p { margin: 8px 0 0; color: var(--mut); font-size: 14.5px; line-height: 1.55; }
@media (min-width: 640px) { .yt-guide-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .yt-guide-grid { grid-template-columns: repeat(3, 1fr); } }
