/* VOD Clipper site. Tokens = the app's (apps/web/app/globals.css). Dark only. */
@font-face { font-family: "Bricolage Grotesque"; src: url(assets/fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(assets/fonts/instrument-sans-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #16171a; --panel: #1e1f23; --raised: #27282d; --line: #34363c;
  --ink: #e9e9ec; --muted: #9b9da4; --accent: #7ee03a; --accent-ink: #10140b; --cue: #f2c94c;
  --radius: 12px; --wrap: 1160px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; font-family: var(--body); }
.accent { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border-radius: 10px; padding: .7rem 1.1rem; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgb(126 224 58 / .5); }
.btn-lg { font-size: 1.15rem; padding: 1rem 1.5rem; }
.btn-sm { font-size: .9rem; padding: .45rem .8rem; }
.btn-ghost { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .9rem; font: inherit; font-size: .9rem; cursor: pointer; }
.btn-link { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgb(22 23 26 / .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand.small { font-size: 1rem; }
.nav-links { display: flex; gap: 1.25rem; margin-left: 1rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; color: var(--muted); font: 600 .8rem var(--body); padding: .4rem .6rem; cursor: pointer; min-width: 40px; min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.nav-dl { display: none; }
.nav-dl.show { display: inline-flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.brand span { white-space: nowrap; }

/* hero */
.hero { padding: clamp(1.5rem, 4vw, 3.5rem) 0 2rem; background: radial-gradient(60% 50% at 75% 20%, rgb(126 224 58 / .07), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); font-weight: 700; }
.lead { margin-top: 1.1rem; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #c9cacf; max-width: 36em; }
.cta { margin-top: 1.6rem; }
.meta { margin-top: .7rem; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.os-note { margin-top: .6rem; font-size: .92rem; color: var(--cue); display: flex; flex-wrap: wrap; gap: .5rem; }
.see-how { display: inline-block; margin-top: 1rem; color: var(--muted); text-decoration: none; font-size: .95rem; }
.see-how:hover { color: var(--ink); }
.window { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 30px 80px -30px rgb(0 0 0 / .8), 0 0 0 1px rgb(255 255 255 / .02); }
.window-bar { display: flex; gap: 6px; padding: 9px 12px; background: var(--raised); border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.trust { list-style: none; padding: 0; margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "✓"; color: var(--accent); margin-right: .45rem; font-weight: 700; }

/* timeline motif: a footage bar, clip moments light up in cue yellow and fly out as clip cards */
.timeline { margin-top: 1.1rem; }
.bar { position: relative; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 11px, rgb(255 255 255 / .06) 11px 12px), var(--panel); border: 1px solid var(--line); }
.m { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; background: var(--cue); opacity: .15; animation: light 6s ease-in-out infinite; }
.m1 { left: 8%; width: 6%; } .m2 { left: 31%; width: 9%; animation-delay: .6s; } .m3 { left: 58%; width: 5%; animation-delay: 1.2s; } .m4 { left: 80%; width: 8%; animation-delay: 1.8s; }
.cards { display: flex; justify-content: space-around; margin-top: 10px; height: 34px; }
.c { width: 18%; border-radius: 6px; border: 1px solid rgb(242 201 76 / .6); background: linear-gradient(135deg, rgb(242 201 76 / .25), rgb(242 201 76 / .05)); opacity: 0; transform: translateY(-14px) scale(.8); animation: fly 6s ease-in-out infinite; }
.c2 { animation-delay: .6s; } .c3 { animation-delay: 1.2s; } .c4 { animation-delay: 1.8s; }
@keyframes light { 0%, 8% { opacity: .15; } 18%, 75% { opacity: 1; box-shadow: 0 0 12px rgb(242 201 76 / .6); } 90%, 100% { opacity: .15; } }
@keyframes fly { 0%, 15% { opacity: 0; transform: translateY(-14px) scale(.8); } 28%, 75% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .m, .c { animation: none; } .m { opacity: 1; } .c { opacity: 1; transform: none; }
  html { scroll-behavior: auto; } .btn { transition: none; }
}
.divider { width: min(var(--wrap), 100% - 32px); margin: 3rem auto; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, transparent 0 15px, rgb(255 255 255 / .07) 15px 16px), var(--panel); position: relative; }
.divider span { position: absolute; top: 0; bottom: 0; background: var(--cue); border-radius: 3px; opacity: .85; }
.divider span:nth-child(1) { left: 12%; width: 4%; } .divider span:nth-child(2) { left: 47%; width: 7%; } .divider span:nth-child(3) { left: 79%; width: 3%; }

/* GitHub link, hero source link */
.gh { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); text-decoration: none; font-size: .9rem; min-height: 32px; }
.gh:hover { color: var(--ink); }
.src-link { margin-top: .35rem; font-size: .88rem; }
.src-link a { color: var(--muted); text-underline-offset: 3px; }
.src-link a:hover { color: var(--ink); }

/* open source section */
.open .intro { max-width: 46em; color: #c2c3c8; margin-bottom: 1.4rem; }
.points { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1.5rem; max-width: 52em; }
.points li { display: flex; gap: .7rem; align-items: flex-start; }
.points .ic { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 8px; background: var(--raised); border: 1px solid var(--line); flex: none; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.btns .btn-ghost { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; padding: .6rem 1rem; }
.btns .btn-ghost:hover { border-color: var(--muted); }
.inside { margin: 2rem 0 0; }
.arch { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.pc { flex: 1 1 560px; border: 1px dashed var(--accent); border-radius: var(--radius); padding: 1rem; background: rgb(126 224 58 / .03); }
.pc-label { font-size: .85rem; color: var(--accent); margin-bottom: .8rem; font-weight: 600; }
.boxes { display: flex; align-items: stretch; gap: .5rem; }
.box { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; display: grid; gap: .15rem; }
.box b { font-family: var(--display); font-size: 1rem; }
.box span { font-size: .85rem; color: var(--muted); }
.arrow { align-self: center; color: var(--muted); }
.out { display: flex; align-items: center; gap: .6rem; flex: 0 1 260px; }
.dash { width: 32px; border-top: 2px dashed var(--muted); flex: none; }
.box.ext { border-color: var(--line); }
.build-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: .6rem; }
.build-head .kicker { margin: 0; }
.more { color: var(--accent); text-decoration: none; font-weight: 600; font-size: .95rem; }
.more:hover { text-decoration: underline; }

/* sections */
section.wrap { padding-block: clamp(2rem, 5vw, 4rem); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.big { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .9vw, 1.75rem); line-height: 1.3; font-weight: 500; max-width: 26em; }
.problem .col { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.flow { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .5rem 1rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-variant-numeric: tabular-nums; }
.arr { color: var(--muted); font-weight: 500; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps .shot, .card .shot { border-radius: 10px; border: 1px solid var(--line); margin-bottom: 1rem; }
.steps h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.n { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 1rem; flex: none; }
.steps p, .card p { color: #c2c3c8; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.3rem; }
.card h3 { margin-bottom: .4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.badge { font: 700 .7rem var(--body); letter-spacing: .05em; color: var(--cue); border: 1px solid rgb(242 201 76 / .5); border-radius: 999px; padding: .2rem .55rem; cursor: help; }
.checks, .reqs { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; max-width: 46em; }
.checks li, .reqs li { padding-left: 1.8rem; position: relative; }
.checks li::before, .reqs li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.smartscreen p { color: #c2c3c8; }
.ss-box { background: #1b4f8a; color: #fff; border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: .9rem; font-family: "Segoe UI", system-ui, sans-serif; max-width: 420px; }
.ss-t { font-size: 1.15rem; font-weight: 600; } .ss-s { font-size: .85rem; margin-top: .3rem; }
.ss-l { font-size: .85rem; text-decoration: underline; margin-top: .4rem; }
.ss-b { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .6rem; font-size: .8rem; }
.ss-b span { border: 1px solid rgb(255 255 255 / .7); padding: .2rem .7rem; }
.ss-b span:first-child { outline: 2px solid var(--cue); outline-offset: 2px; }
.sha { margin-top: 2rem; }
.sha-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.sha code { font: .85rem/1.4 ui-monospace, Consolas, monospace; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; overflow-wrap: anywhere; max-width: 100%; }
.sha p a { color: var(--accent); }
.faq details { border-bottom: 1px solid var(--line); max-width: 52em; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1rem; color: #c2c3c8; max-width: 42em; }
.final { background: radial-gradient(60% 80% at 50% 0%, rgb(126 224 58 / .08), transparent 70%); border-top: 1px solid var(--line); }
.final-in { padding-block: clamp(2.5rem, 6vw, 4.5rem); text-align: center; display: grid; justify-items: center; gap: 1.2rem; }
.final h2 { margin: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.facts li { display: flex; gap: .7rem; align-items: flex-start; color: #c2c3c8; font-size: .95rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .9rem; }
.ic { color: var(--accent); font-size: 1.1rem; line-height: 1.4; }
.foot { border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot-in { padding-block: 1.8rem; display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; justify-content: space-between; }
.foot a { color: var(--ink); }
.foot .links { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 999px) {
  .nav-links { display: none; }
  .gh span { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 640px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .gh span { display: none; }
  .points { grid-template-columns: 1fr; }
  .boxes { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
  .out { flex-basis: 100%; }
  .nav-in { gap: .75rem; }
  .nav-right { gap: .5rem; }
  .two, .grid { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .hero { padding-top: 1.2rem; }
  .btn-lg { width: 100%; justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .gh { display: none; }
}
