/* kanopy site - Developed by acidvegas (https://github.com/acidvegas) */

:root {
	--bg:      #08070e;
	--bg-2:    #0d0b17;
	--raised:  #131020;
	--line:    #1f1a33;
	--line-2:  #2b2447;
	--text:    #ece9f6;
	--soft:    #c9c5dc;
	--muted:   #8d88a9;
	--accent:  #a78bfa;
	--ok:      #4ade80;
	--danger:  #f87171;
	--grad:    linear-gradient(100deg, #c4b5fd, #f472b6);
	--btn:     linear-gradient(100deg, #7c3aed, #db2777);
	--wrap:    1120px;
	--sans:    Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono:    ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
p, li { text-wrap: pretty; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #c4b5fd; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code { font-size: .86em; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em; color: #ddd6fe; }
::selection { background: rgba(167, 139, 250, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: rgba(8, 7, 14, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 1.5rem; height: 62px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; }
.brand:hover { color: var(--text); }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.on { color: var(--text); }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }
.menu svg { width: 20px; height: 20px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid var(--line-2); color: var(--text); background: var(--bg-2); transition: border-color .15s, filter .15s; white-space: nowrap; }
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--btn); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: .45rem .85rem; font-size: .88rem; }

/* hero */
.hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem); text-align: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto; height: 620px; z-index: -1; pointer-events: none; background: radial-gradient(42rem 22rem at 50% 0%, rgba(124, 58, 237, .18), transparent 70%); }
h1 { font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1.04; letter-spacing: -.05em; margin: 0 0 1.3rem; font-weight: 800; }
h1 span { display: block; }
.sub { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--soft); margin: 0 auto 2rem; text-wrap: balance; }
.cta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* video */
.showcase { margin: clamp(3rem, 7vw, 4.5rem) auto 0; }
.frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: rgba(8, 7, 14, .3); cursor: pointer; transition: background .2s; }
.play:hover { background: rgba(8, 7, 14, .15); }
.play span { display: grid; place-items: center; width: clamp(60px, 8vw, 84px); aspect-ratio: 1; border-radius: 50%; background: var(--btn); box-shadow: 0 0 0 8px rgba(255, 255, 255, .07), 0 16px 40px rgba(0, 0, 0, .6); transition: transform .2s; }
.play:hover span { transform: scale(1.05); }
.play svg { width: 38%; height: 38%; margin-left: 6%; fill: #fff; }
.player.playing .play { display: none; }

/* sections */
section { padding: clamp(4.5rem, 10vw, 7rem) 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 .8rem; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 1rem; font-weight: 750; text-wrap: balance; }
h3 { font-size: 1.15rem; letter-spacing: -.015em; margin: 0 0 .5rem; }
.head { max-width: 42rem; margin-bottom: 3rem; }
.head p { color: var(--soft); font-size: 1.06rem; margin: 0; }
.head p + p { margin-top: .85rem; }
.head.wide { max-width: none; }
.head.center { margin-inline: auto; text-align: center; }

/* why: feature rows */
.rows { display: grid; gap: clamp(3rem, 7vw, 5rem); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.row:nth-child(even) .row-text { order: 2; }
.row-text h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -.03em; margin-bottom: .7rem; }
.row-text p { margin: 0; color: var(--soft); font-size: 1.04rem; }
.row-text p + p { margin-top: .85rem; }
.row-visual { border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(30rem 16rem at 100% 0%, rgba(124, 58, 237, .12), transparent 70%), var(--bg-2); padding: clamp(1rem, 3vw, 1.8rem); }
.row-visual img { border-radius: 10px; margin-inline: auto; }
.row-visual.stack { display: grid; gap: .9rem; justify-items: center; }
.claim-img { width: min(100%, 300px); }
.mini { margin: 0; width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: .72rem; line-height: 1.75; color: var(--soft); overflow-x: auto; white-space: pre; }
.mini.err { color: var(--danger); white-space: pre-wrap; }
.o-ok { color: var(--ok); } .o-dim { color: var(--muted); }

/* compare: big multipliers */
.diet { padding-top: 1rem; }
.mults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.mult { display: flex; flex-direction: column; }
.mult b { display: block; font-size: clamp(3.6rem, 9vw, 6.2rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; padding-bottom: .1em; }
.mult span { display: block; text-wrap: balance; margin: .6rem auto 1.2rem; max-width: 17rem; color: var(--text); font-size: 1.05rem; font-weight: 600; line-height: 1.4; }
.mult small { display: block; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-2); color: var(--muted); font: .82rem var(--mono); }

/* themes carousel */
.carousel { position: relative; }
.slides { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.slides img.on { opacity: 1; }

/* copyable command */
.cmd { display: flex; align-items: center; gap: .7rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .5rem .5rem .9rem; font-family: var(--mono); font-size: .8rem; min-width: 0; flex: 3 1 24rem; }
.cmd .prompt { color: var(--accent); user-select: none; }
.cmd code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; color: var(--soft); }
.cmd code::-webkit-scrollbar { display: none; }
.copy { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--muted); }
.copy svg { width: 15px; height: 15px; }
.copy.done { color: var(--ok); border-color: var(--ok); }

/* compare */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: var(--raised); }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--soft); font-weight: 500; min-width: 13rem; }
.compare th:nth-child(2), .compare td:nth-child(2) { background: rgba(167, 139, 250, .07); color: var(--text); font-weight: 600; }
.compare i { display: inline-block; width: 16px; height: 16px; border-radius: 50%; margin-right: .5rem; vertical-align: -3px; background: center / 10px no-repeat; }
.compare i.y { background-color: rgba(74, 222, 128, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.compare i.n { background-color: rgba(248, 113, 113, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E"); }
.compare i.m { background-color: rgba(251, 191, 36, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* tabs */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; padding: .3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); width: fit-content; max-width: 100%; margin: 0 auto 1.5rem; }
.tabs button { font: 600 .9rem var(--sans); color: var(--muted); background: none; border: 0; padding: .5rem .95rem; border-radius: 9px; cursor: pointer; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-2); }
.shot { display: none; margin: 0; }
.shot.on { display: block; }

/* install */
.install { max-width: 46rem; margin-inline: auto; }
.setup { list-style: none; margin: 0; padding: 0; counter-reset: setup; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.setup li { position: relative; padding-left: 3.4rem; }
.setup li::before { counter-increment: setup; content: counter(setup); position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 700 .9rem var(--mono); }
.setup li:not(:last-child)::after { content: ''; position: absolute; left: 1.05rem; top: 2.6rem; bottom: -2rem; width: 1px; background: var(--line); }
.setup-text h3 { font-size: 1.15rem; margin: .2rem 0 .35rem; }
.setup-text p { margin: 0; color: var(--soft); text-wrap: pretty; }
.term { min-width: 0; margin-top: 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.term-bar { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 3.2rem 0 .5rem; border-bottom: 1px solid var(--line); background: var(--raised); }
.term-title { padding: 0 .55rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.term-tabs { display: flex; gap: .15rem; }
.term-tabs button { font: 600 .85rem var(--sans); color: var(--muted); background: none; border: 0; padding: .45rem .75rem; border-radius: 8px; cursor: pointer; }
.term-tabs button:hover { color: var(--text); }
.term-tabs button[aria-selected="true"] { color: var(--text); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.term .copy { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); }
.term pre { margin: 0; padding: 1rem 1.2rem 1.1rem; overflow-x: auto; font-size: .84rem; line-height: 1.75; color: var(--soft); }
.term pre.panel { display: none; }
.term pre.panel.on { display: block; }

/* shell highlighting */
.sh-k { color: #c4b5fd; font-weight: 600; }
.sh-f { color: #7dd3fc; }
.sh-s { color: #86efac; }
.sh-v { color: #fbbf24; }
.sh-o { color: #f472b6; }
.sh-c { color: var(--muted); font-style: italic; }

/* closing */
.final { text-align: center; }
.final p { color: var(--soft); margin: 0 auto 1.8rem; max-width: 40rem; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px)); text-align: center; }
footer a { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .9rem; }
footer a:hover { color: var(--text); }
footer svg { width: 18px; height: 18px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* docs */
.docs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0 5rem; }
.toc { position: sticky; top: 86px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: .9rem; scrollbar-width: thin; }
.toc p { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .7rem; }
.toc a { display: block; color: var(--muted); padding: .3rem .75rem; border-left: 2px solid var(--line); }
.toc a.sub { padding-left: 1.5rem; font-size: .86rem; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--accent); }
.prose { max-width: 48rem; }
.prose h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); text-align: left; margin: 0 0 .6rem; }
.prose > .intro { color: var(--soft); font-size: 1.08rem; margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.65rem; margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.18rem; margin: 2rem 0 .6rem; }
.prose a.anchor { color: var(--line-2); margin-left: .4rem; opacity: 0; font-weight: 500; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor { opacity: 1; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); }
.prose em { font-style: normal; color: var(--muted); }
.prose .table-wrap { margin: 1.2rem 0; }
.prose pre { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 3.2rem 1rem 1.1rem; overflow-x: auto; font-size: .84rem; line-height: 1.7; }
.prose pre .copy { position: absolute; top: .55rem; right: .55rem; }
.prose details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin: 1rem 0; }
.prose summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 600; }
.prose details > :not(summary) { margin-inline: 1.1rem; }
.prose details > :last-child { margin-bottom: 1.1rem; }

@media (max-width: 900px) {
	.row { grid-template-columns: minmax(0, 1fr); }
	.row:nth-child(even) .row-text { order: 0; }
	.docs { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
	.toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--bg-2); }
}
@media (max-width: 760px) {
	.mults { grid-template-columns: minmax(0, 1fr); }
		.menu { display: grid; place-items: center; }
	.nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
	.nav.open .nav-links { display: flex; }
	.nav-links a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
	.nav .btn.gh { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}
